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

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

Issue 2438233004: Make IndexedDBConnection IDs independent from the IPC database ID. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/indexed_db_database.h" 5 #include "content/browser/indexed_db/indexed_db_database.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <set> 10 #include <set>
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 observer->id()); 923 observer->id());
924 } 924 }
925 } 925 }
926 } 926 }
927 927
928 void IndexedDBDatabase::SendObservations( 928 void IndexedDBDatabase::SendObservations(
929 std::map<int32_t, std::unique_ptr<IndexedDBObserverChanges>> changes_map) { 929 std::map<int32_t, std::unique_ptr<IndexedDBObserverChanges>> changes_map) {
930 for (auto* conn : connections_) { 930 for (auto* conn : connections_) {
931 auto it = changes_map.find(conn->id()); 931 auto it = changes_map.find(conn->id());
932 if (it != changes_map.end()) 932 if (it != changes_map.end())
933 conn->callbacks()->OnDatabaseChange(it->first, std::move(it->second)); 933 conn->callbacks()->OnDatabaseChange(std::move(it->second));
934 } 934 }
935 } 935 }
936 936
937 void IndexedDBDatabase::GetAll(int64_t transaction_id, 937 void IndexedDBDatabase::GetAll(int64_t transaction_id,
938 int64_t object_store_id, 938 int64_t object_store_id,
939 int64_t index_id, 939 int64_t index_id,
940 std::unique_ptr<IndexedDBKeyRange> key_range, 940 std::unique_ptr<IndexedDBKeyRange> key_range,
941 bool key_only, 941 bool key_only,
942 int64_t max_count, 942 int64_t max_count,
943 scoped_refptr<IndexedDBCallbacks> callbacks) { 943 scoped_refptr<IndexedDBCallbacks> callbacks) {
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2125 2125
2126 void IndexedDBDatabase::VersionChangeAbortOperation( 2126 void IndexedDBDatabase::VersionChangeAbortOperation(
2127 int64_t previous_version, 2127 int64_t previous_version,
2128 IndexedDBTransaction* transaction) { 2128 IndexedDBTransaction* transaction) {
2129 DCHECK(!transaction); 2129 DCHECK(!transaction);
2130 IDB_TRACE("IndexedDBDatabase::VersionChangeAbortOperation"); 2130 IDB_TRACE("IndexedDBDatabase::VersionChangeAbortOperation");
2131 metadata_.version = previous_version; 2131 metadata_.version = previous_version;
2132 } 2132 }
2133 2133
2134 } // namespace content 2134 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_connection.cc ('k') | content/browser/indexed_db/indexed_db_database_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698