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

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

Issue 2822453003: Wrap large IndexedDB values into Blobs before writing to LevelDB. (Closed)
Patch Set: WIP: Getting IDBRequestTest.EventsAfterStopping to pass. 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
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 c2847e08d92dc97aa66ea911adc8558eda3f7814..f995707d2bc7b71915ec93b9e2c34aa46d21bf0f 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->EnqueueResponse(
+ request->HandleResponse(
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->EnqueueResponse(
+ request->HandleResponse(
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->EnqueueResponse(
+ request->HandleResponse(
DOMException::Create(kUnknownError, kPermissionDeniedErrorMessage));
return request;
}

Powered by Google App Engine
This is Rietveld 408576698