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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 const IndexedDBTransactionCoordinator& transaction_coordinator() const { | 117 const IndexedDBTransactionCoordinator& transaction_coordinator() const { |
| 118 return transaction_coordinator_; | 118 return transaction_coordinator_; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void TransactionCreated(IndexedDBTransaction* transaction); | 121 void TransactionCreated(IndexedDBTransaction* transaction); |
| 122 void TransactionFinished(IndexedDBTransaction* transaction, bool committed); | 122 void TransactionFinished(IndexedDBTransaction* transaction, bool committed); |
| 123 | 123 |
| 124 // Called by transactions to report failure committing to the backing store. | 124 // Called by transactions to report failure committing to the backing store. |
| 125 void TransactionCommitFailed(const leveldb::Status& status); | 125 void TransactionCommitFailed(const leveldb::Status& status); |
| 126 | 126 |
| 127 void AddPendingObserver(int64_t transaction_id, int64_t observer_id); | |
|
Marijn Kruisselbrink
2016/06/28 18:58:31
Should observer_id here be int32_t rather than int
palakj1
2016/06/29 23:02:40
Sorry. Corrected.
| |
| 128 void RemovePendingObservers(IndexedDBConnection*, | |
| 129 const std::vector<int32_t>& pending_observer_ids); | |
| 130 | |
| 127 void Get(int64_t transaction_id, | 131 void Get(int64_t transaction_id, |
| 128 int64_t object_store_id, | 132 int64_t object_store_id, |
| 129 int64_t index_id, | 133 int64_t index_id, |
| 130 std::unique_ptr<IndexedDBKeyRange> key_range, | 134 std::unique_ptr<IndexedDBKeyRange> key_range, |
| 131 bool key_only, | 135 bool key_only, |
| 132 scoped_refptr<IndexedDBCallbacks> callbacks); | 136 scoped_refptr<IndexedDBCallbacks> callbacks); |
| 133 void GetAll(int64_t transaction_id, | 137 void GetAll(int64_t transaction_id, |
| 134 int64_t object_store_id, | 138 int64_t object_store_id, |
| 135 int64_t index_id, | 139 int64_t index_id, |
| 136 std::unique_ptr<IndexedDBKeyRange> key_range, | 140 std::unique_ptr<IndexedDBKeyRange> key_range, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 | 316 |
| 313 ConnectionSet connections_; | 317 ConnectionSet connections_; |
| 314 bool experimental_web_platform_features_enabled_; | 318 bool experimental_web_platform_features_enabled_; |
| 315 | 319 |
| 316 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); | 320 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); |
| 317 }; | 321 }; |
| 318 | 322 |
| 319 } // namespace content | 323 } // namespace content |
| 320 | 324 |
| 321 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 325 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |