Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp

Issue 2870803002: Rename IDBRequest::On* callbacks to IDBRequest::Enqueue*. (Closed)
Patch Set: De-virtualized one more callback. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
index 84057d45310b159cafe732267ee4b5028745f885..c2847e08d92dc97aa66ea911adc8558eda3f7814 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
@@ -82,7 +82,7 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* script_state,
if (!IndexedDBClient::From(ExecutionContext::From(script_state))
->AllowIndexedDB(ExecutionContext::From(script_state),
"Database Listing")) {
- request->OnError(
+ request->EnqueueResponse(
DOMException::Create(kUnknownError, kPermissionDeniedErrorMessage));
return request;
}
@@ -129,7 +129,7 @@ IDBOpenDBRequest* IDBFactory::OpenInternal(ScriptState* script_state,
if (!IndexedDBClient::From(ExecutionContext::From(script_state))
->AllowIndexedDB(ExecutionContext::From(script_state), name)) {
- request->OnError(
+ request->EnqueueResponse(
DOMException::Create(kUnknownError, kPermissionDeniedErrorMessage));
return request;
}
@@ -187,7 +187,7 @@ IDBOpenDBRequest* IDBFactory::DeleteDatabaseInternal(
if (!IndexedDBClient::From(ExecutionContext::From(script_state))
->AllowIndexedDB(ExecutionContext::From(script_state), name)) {
- request->OnError(
+ request->EnqueueResponse(
DOMException::Create(kUnknownError, kPermissionDeniedErrorMessage));
return request;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698