Exemplo n.º 1
0
void WebIDBDatabaseCallbacksImpl::onAbort(long long transactionId,
                                          const WebIDBDatabaseError& error) {
  if (m_callbacks) {
    m_callbacks->onAbort(transactionId,
                         DOMException::create(error.code(), error.message()));
  }
}
void WebIDBCallbacksImpl::onError(const WebIDBDatabaseError& error)
{
    InspectorInstrumentation::AsyncTask asyncTask(m_request->getExecutionContext(), this);
    m_request->onError(DOMException::create(error.code(), error.message()));
}
void WebIDBCallbacksImpl::onError(const WebIDBDatabaseError& error)
{
    InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsyncCallbackStarting(m_request->executionContext(), m_asyncOperationId);
    m_request->onError(DOMError::create(error.code(), error.message()));
    InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
}