Chromium Code Reviews| 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_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params); | 167 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params); |
| 168 void OnDeleteObjectStore(int32_t ipc_database_id, | 168 void OnDeleteObjectStore(int32_t ipc_database_id, |
| 169 int64_t transaction_id, | 169 int64_t transaction_id, |
| 170 int64_t object_store_id); | 170 int64_t object_store_id); |
| 171 void OnCreateTransaction( | 171 void OnCreateTransaction( |
| 172 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&); | 172 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&); |
| 173 void OnClose(int32_t ipc_database_id); | 173 void OnClose(int32_t ipc_database_id); |
| 174 void OnVersionChangeIgnored(int32_t ipc_database_id); | 174 void OnVersionChangeIgnored(int32_t ipc_database_id); |
| 175 void OnDestroyed(int32_t ipc_database_id); | 175 void OnDestroyed(int32_t ipc_database_id); |
| 176 | 176 |
| 177 void OnObserve(int32_t ipc_database_id, | |
| 178 int64_t transaction_id, | |
| 179 int32_t observer_id); | |
| 180 void OnUnobserve(int32_t ipc_database_id, | |
| 181 std::vector<int32_t> observersToRemove); | |
|
dmurph
2016/06/22 01:09:49
const ref.
palakj1
2016/06/23 20:56:30
Done
| |
| 182 | |
| 177 void OnGet(const IndexedDBHostMsg_DatabaseGet_Params& params); | 183 void OnGet(const IndexedDBHostMsg_DatabaseGet_Params& params); |
| 178 void OnGetAll(const IndexedDBHostMsg_DatabaseGetAll_Params& params); | 184 void OnGetAll(const IndexedDBHostMsg_DatabaseGetAll_Params& params); |
| 179 // OnPutWrapper starts on the IO thread so that it can grab BlobDataHandles | 185 // OnPutWrapper starts on the IO thread so that it can grab BlobDataHandles |
| 180 // before posting to the IDB TaskRunner for the rest of the job. | 186 // before posting to the IDB TaskRunner for the rest of the job. |
| 181 void OnPutWrapper(const IndexedDBHostMsg_DatabasePut_Params& params); | 187 void OnPutWrapper(const IndexedDBHostMsg_DatabasePut_Params& params); |
| 182 void OnPut(const IndexedDBHostMsg_DatabasePut_Params& params, | 188 void OnPut(const IndexedDBHostMsg_DatabasePut_Params& params, |
| 183 std::vector<storage::BlobDataHandle*> handles); | 189 std::vector<storage::BlobDataHandle*> handles); |
| 184 void OnSetIndexKeys( | 190 void OnSetIndexKeys( |
| 185 const IndexedDBHostMsg_DatabaseSetIndexKeys_Params& params); | 191 const IndexedDBHostMsg_DatabaseSetIndexKeys_Params& params); |
| 186 void OnSetIndexesReady(int32_t ipc_database_id, | 192 void OnSetIndexesReady(int32_t ipc_database_id, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 292 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 298 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 293 net::URLRequestContext* request_context_; | 299 net::URLRequestContext* request_context_; |
| 294 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 300 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 295 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 301 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 296 | 302 |
| 297 BlobDataHandleMap blob_data_handle_map_; | 303 BlobDataHandleMap blob_data_handle_map_; |
| 298 | 304 |
| 299 // Only access on IndexedDB thread. | 305 // Only access on IndexedDB thread. |
| 300 std::unique_ptr<DatabaseDispatcherHost> database_dispatcher_host_; | 306 std::unique_ptr<DatabaseDispatcherHost> database_dispatcher_host_; |
| 301 std::unique_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 307 std::unique_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 302 | |
| 303 // Used to set file permissions for blob storage. | 308 // Used to set file permissions for blob storage. |
| 304 int ipc_process_id_; | 309 int ipc_process_id_; |
| 305 | 310 |
| 306 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 311 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 307 }; | 312 }; |
| 308 | 313 |
| 309 } // namespace content | 314 } // namespace content |
| 310 | 315 |
| 311 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 316 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |