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