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