| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 virtual void OnSuccessWithPrefetch( | 86 virtual void OnSuccessWithPrefetch( |
| 87 const std::vector<IndexedDBKey>& keys, | 87 const std::vector<IndexedDBKey>& keys, |
| 88 const std::vector<IndexedDBKey>& primary_keys, | 88 const std::vector<IndexedDBKey>& primary_keys, |
| 89 std::vector<IndexedDBValue>* values); | 89 std::vector<IndexedDBValue>* values); |
| 90 | 90 |
| 91 // IndexedDBDatabase::Get | 91 // IndexedDBDatabase::Get |
| 92 // IndexedDBCursor::Advance | 92 // IndexedDBCursor::Advance |
| 93 virtual void OnSuccess(IndexedDBReturnValue* value); | 93 virtual void OnSuccess(IndexedDBReturnValue* value); |
| 94 | 94 |
| 95 // IndexedDBDatabase::GetAll | 95 // IndexedDBDatabase::GetAll |
| 96 virtual void OnSuccessArray(std::vector<IndexedDBReturnValue>* values, | 96 virtual void OnSuccessArray(std::vector<IndexedDBReturnValue>* values); |
| 97 const IndexedDBKeyPath& key_path); | |
| 98 | 97 |
| 99 // IndexedDBDatabase::Put / IndexedDBCursor::Update | 98 // IndexedDBDatabase::Put / IndexedDBCursor::Update |
| 100 virtual void OnSuccess(const IndexedDBKey& key); | 99 virtual void OnSuccess(const IndexedDBKey& key); |
| 101 | 100 |
| 102 // IndexedDBDatabase::Count | 101 // IndexedDBDatabase::Count |
| 103 // IndexedDBFactory::DeleteDatabase | 102 // IndexedDBFactory::DeleteDatabase |
| 104 // IndexedDBDatabase::DeleteRange | 103 // IndexedDBDatabase::DeleteRange |
| 105 virtual void OnSuccess(int64_t value); | 104 virtual void OnSuccess(int64_t value); |
| 106 | 105 |
| 107 // IndexedDBCursor::Continue / Advance (when complete) | 106 // IndexedDBCursor::Continue / Advance (when complete) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 132 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 131 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
| 133 int32_t ipc_callbacks_id_; | 132 int32_t ipc_callbacks_id_; |
| 134 int32_t ipc_thread_id_; | 133 int32_t ipc_thread_id_; |
| 135 | 134 |
| 136 // IndexedDBCursor callbacks ------------------------ | 135 // IndexedDBCursor callbacks ------------------------ |
| 137 int32_t ipc_cursor_id_; | 136 int32_t ipc_cursor_id_; |
| 138 | 137 |
| 139 // IndexedDBDatabase callbacks ------------------------ | 138 // IndexedDBDatabase callbacks ------------------------ |
| 140 int64_t host_transaction_id_; | 139 int64_t host_transaction_id_; |
| 141 url::Origin origin_; | 140 url::Origin origin_; |
| 142 int32_t ipc_database_id_; | 141 bool database_sent_ = false; |
| 143 | 142 |
| 144 // Used to assert that OnSuccess is only called if there was no data loss. | 143 // Used to assert that OnSuccess is only called if there was no data loss. |
| 145 blink::WebIDBDataLoss data_loss_; | 144 blink::WebIDBDataLoss data_loss_; |
| 146 | 145 |
| 147 // The "blocked" event should be sent at most once per request. | 146 // The "blocked" event should be sent at most once per request. |
| 148 bool sent_blocked_; | 147 bool sent_blocked_; |
| 149 base::TimeTicks connection_open_start_time_; | 148 base::TimeTicks connection_open_start_time_; |
| 150 | 149 |
| 151 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; | 150 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; |
| 152 base::ThreadChecker thread_checker_; | 151 base::ThreadChecker thread_checker_; |
| 153 | 152 |
| 154 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); | 153 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 } // namespace content | 156 } // namespace content |
| 158 | 157 |
| 159 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 158 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
| OLD | NEW |