| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DATABASE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/indexed_db/indexed_db.mojom.h" | 10 #include "content/common/indexed_db/indexed_db.mojom.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int64_t index_id) override; | 114 int64_t index_id) override; |
| 115 void RenameIndex(int64_t transaction_id, | 115 void RenameIndex(int64_t transaction_id, |
| 116 int64_t object_store_id, | 116 int64_t object_store_id, |
| 117 int64_t index_id, | 117 int64_t index_id, |
| 118 const base::string16& new_name) override; | 118 const base::string16& new_name) override; |
| 119 void Abort(int64_t transaction_id) override; | 119 void Abort(int64_t transaction_id) override; |
| 120 void Commit(int64_t transaction_id) override; | 120 void Commit(int64_t transaction_id) override; |
| 121 void AckReceivedBlobs(const std::vector<std::string>& uuids) override; | 121 void AckReceivedBlobs(const std::vector<std::string>& uuids) override; |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 class IDBThreadHelper; | 124 class IDBSequenceHelper; |
| 125 | 125 |
| 126 IDBThreadHelper* helper_; | 126 IDBSequenceHelper* helper_; |
| 127 // This raw pointer is safe because all DatabaseImpl instances are owned by | 127 // This raw pointer is safe because all DatabaseImpl instances are owned by |
| 128 // an IndexedDBDispatcherHost. | 128 // an IndexedDBDispatcherHost. |
| 129 IndexedDBDispatcherHost* dispatcher_host_; | 129 IndexedDBDispatcherHost* dispatcher_host_; |
| 130 const url::Origin origin_; | 130 const url::Origin origin_; |
| 131 scoped_refptr<base::SequencedTaskRunner> idb_runner_; | 131 scoped_refptr<base::SequencedTaskRunner> idb_runner_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(DatabaseImpl); | 133 DISALLOW_COPY_AND_ASSIGN(DatabaseImpl); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace content | 136 } // namespace content |
| 137 | 137 |
| 138 #endif // CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ | 138 #endif // CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ |
| OLD | NEW |