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

Side by Side Diff: content/browser/indexed_db/database_impl.cc

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/indexed_db/database_impl.h" 5 #include "content/browser/indexed_db/database_impl.h"
6 6
7 #include "content/browser/bad_message.h" 7 #include "content/browser/bad_message.h"
8 #include "content/browser/child_process_security_policy_impl.h" 8 #include "content/browser/child_process_security_policy_impl.h"
9 #include "content/browser/indexed_db/indexed_db_connection.h" 9 #include "content/browser/indexed_db/indexed_db_connection.h"
10 #include "content/browser/indexed_db/indexed_db_context_impl.h" 10 #include "content/browser/indexed_db/indexed_db_context_impl.h"
11 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 11 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
12 #include "content/browser/indexed_db/indexed_db_value.h" 12 #include "content/browser/indexed_db/indexed_db_value.h"
13 #include "content/common/indexed_db/indexed_db_messages.h"
14 #include "storage/browser/blob/blob_storage_context.h" 13 #include "storage/browser/blob/blob_storage_context.h"
15 #include "storage/browser/quota/quota_manager_proxy.h" 14 #include "storage/browser/quota/quota_manager_proxy.h"
16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc eption.h" 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc eption.h"
17 16
18 using std::swap; 17 using std::swap;
19 18
20 namespace content { 19 namespace content {
21 20
22 namespace { 21 namespace {
23 const char kInvalidBlobUuid[] = "Blob UUID is invalid"; 22 const char kInvalidBlobUuid[] = "Blob UUID is invalid";
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 if (status == storage::kQuotaStatusOk && usage + transaction_size <= quota) { 771 if (status == storage::kQuotaStatusOk && usage + transaction_size <= quota) {
773 connection_->database()->Commit(host_transaction_id); 772 connection_->database()->Commit(host_transaction_id);
774 } else { 773 } else {
775 connection_->database()->Abort( 774 connection_->database()->Abort(
776 host_transaction_id, 775 host_transaction_id,
777 IndexedDBDatabaseError(blink::WebIDBDatabaseExceptionQuotaError)); 776 IndexedDBDatabaseError(blink::WebIDBDatabaseExceptionQuotaError));
778 } 777 }
779 } 778 }
780 779
781 } // namespace content 780 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698