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

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

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: added comments and bug link Created 3 years, 11 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 return transaction_coordinator_; 132 return transaction_coordinator_;
133 } 133 }
134 134
135 void TransactionCreated(IndexedDBTransaction* transaction); 135 void TransactionCreated(IndexedDBTransaction* transaction);
136 void TransactionFinished(IndexedDBTransaction* transaction, bool committed); 136 void TransactionFinished(IndexedDBTransaction* transaction, bool committed);
137 137
138 void AddPendingObserver(IndexedDBTransaction* transaction, 138 void AddPendingObserver(IndexedDBTransaction* transaction,
139 int32_t observer_id, 139 int32_t observer_id,
140 const IndexedDBObserver::Options& options); 140 const IndexedDBObserver::Options& options);
141 141
142 // |value| can be null for delete and clear operations.
142 void FilterObservation(IndexedDBTransaction*, 143 void FilterObservation(IndexedDBTransaction*,
143 int64_t object_store_id, 144 int64_t object_store_id,
144 blink::WebIDBOperationType type, 145 blink::WebIDBOperationType type,
145 const IndexedDBKeyRange& key_range); 146 const IndexedDBKeyRange& key_range,
147 const IndexedDBValue* value);
146 void SendObservations( 148 void SendObservations(
147 std::map<int32_t, ::indexed_db::mojom::ObserverChangesPtr> change_map); 149 std::map<int32_t, ::indexed_db::mojom::ObserverChangesPtr> change_map);
148 150
149 void Get(IndexedDBTransaction* transaction, 151 void Get(IndexedDBTransaction* transaction,
150 int64_t object_store_id, 152 int64_t object_store_id,
151 int64_t index_id, 153 int64_t index_id,
152 std::unique_ptr<IndexedDBKeyRange> key_range, 154 std::unique_ptr<IndexedDBKeyRange> key_range,
153 bool key_only, 155 bool key_only,
154 scoped_refptr<IndexedDBCallbacks> callbacks); 156 scoped_refptr<IndexedDBCallbacks> callbacks);
155 void GetAll(IndexedDBTransaction* transaction, 157 void GetAll(IndexedDBTransaction* transaction,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // is executing. It prevents rentrant calls if the active request completes 344 // is executing. It prevents rentrant calls if the active request completes
343 // synchronously. 345 // synchronously.
344 bool processing_pending_requests_ = false; 346 bool processing_pending_requests_ = false;
345 347
346 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); 348 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase);
347 }; 349 };
348 350
349 } // namespace content 351 } // namespace content
350 352
351 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 353 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_connection.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698