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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.cc

Issue 7470008: Improve IndexedDB's quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODO about opening database when over quota Created 9 years, 5 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: content/browser/in_process_webkit/indexed_db_callbacks.cc
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.cc b/content/browser/in_process_webkit/indexed_db_callbacks.cc
index 7e153a18044c9d4a77ee8d82d96247d9a8510dae..24b2b41bdd6d77ac51d26b0d84d46dcce9c6d872 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -28,15 +28,18 @@ void IndexedDBCallbacksBase::onBlocked() {
void IndexedDBCallbacks<WebKit::WebIDBDatabase>::onSuccess(
WebKit::WebIDBDatabase* idb_object) {
int32 object_id = dispatcher_host()->Add(idb_object, origin_url());
- if (dispatcher_host()->Context()->quota_manager_proxy()) {
- dispatcher_host()->Context()->quota_manager_proxy()->NotifyStorageAccessed(
dgrogan 2011/08/03 01:41:29 This stuff was moved to IndexedDBContext, in a fun
- quota::QuotaClient::kIndexedDatabase, origin_url(),
- quota::kStorageTypeTemporary);
- }
dispatcher_host()->Send(
new IndexedDBMsg_CallbacksSuccessIDBDatabase(response_id(), object_id));
}
+void IndexedDBCallbacks<WebKit::WebIDBTransaction>::onSuccess(
+ WebKit::WebIDBTransaction* idb_object) {
+ int32 object_id = dispatcher_host()->Add(idb_object, origin_url());
+ dispatcher_host()->Send(
+ new IndexedDBMsg_CallbacksSuccessIDBTransaction(response_id(),
+ object_id));
+}
+
void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
WebKit::WebIDBCursor* idb_object) {
int32 object_id = dispatcher_host()->Add(idb_object);

Powered by Google App Engine
This is Rietveld 408576698