OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |