Chromium Code Reviews| 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 #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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 void FilterObservation(IndexedDBTransaction*, | 142 void FilterObservation(IndexedDBTransaction*, |
| 143 int64_t object_store_id, | 143 int64_t object_store_id, |
| 144 blink::WebIDBOperationType type, | 144 blink::WebIDBOperationType type, |
| 145 const IndexedDBKeyRange& key_range); | 145 const IndexedDBKeyRange& key_range, |
| 146 IndexedDBValue* value); | |
|
cmumford
2017/01/09 21:31:25
Value isn't modified, so make it const. Also, add
dmurph
2017/01/10 00:17:39
Done.
| |
| 146 void SendObservations( | 147 void SendObservations( |
| 147 std::map<int32_t, ::indexed_db::mojom::ObserverChangesPtr> change_map); | 148 std::map<int32_t, ::indexed_db::mojom::ObserverChangesPtr> change_map); |
| 148 | 149 |
| 149 void Get(IndexedDBTransaction* transaction, | 150 void Get(IndexedDBTransaction* transaction, |
| 150 int64_t object_store_id, | 151 int64_t object_store_id, |
| 151 int64_t index_id, | 152 int64_t index_id, |
| 152 std::unique_ptr<IndexedDBKeyRange> key_range, | 153 std::unique_ptr<IndexedDBKeyRange> key_range, |
| 153 bool key_only, | 154 bool key_only, |
| 154 scoped_refptr<IndexedDBCallbacks> callbacks); | 155 scoped_refptr<IndexedDBCallbacks> callbacks); |
| 155 void GetAll(IndexedDBTransaction* transaction, | 156 void GetAll(IndexedDBTransaction* transaction, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 // is executing. It prevents rentrant calls if the active request completes | 343 // is executing. It prevents rentrant calls if the active request completes |
| 343 // synchronously. | 344 // synchronously. |
| 344 bool processing_pending_requests_ = false; | 345 bool processing_pending_requests_ = false; |
| 345 | 346 |
| 346 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); | 347 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); |
| 347 }; | 348 }; |
| 348 | 349 |
| 349 } // namespace content | 350 } // namespace content |
| 350 | 351 |
| 351 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 352 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |