| 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 const std::vector<int32_t>& observer_ids_to_remove); |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 308 |
| 303 // Used to set file permissions for blob storage. | 309 // Used to set file permissions for blob storage. |
| 304 int ipc_process_id_; | 310 int ipc_process_id_; |
| 305 | 311 |
| 306 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 312 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 307 }; | 313 }; |
| 308 | 314 |
| 309 } // namespace content | 315 } // namespace content |
| 310 | 316 |
| 311 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 317 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |