| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 ReturnType* GetOrTerminateProcess(RefIDMap<ReturnType>* map, | 275 ReturnType* GetOrTerminateProcess(RefIDMap<ReturnType>* map, |
| 276 int32_t ipc_return_object_id); | 276 int32_t ipc_return_object_id); |
| 277 | 277 |
| 278 template <typename MapType> | 278 template <typename MapType> |
| 279 void DestroyObject(MapType* map, int32_t ipc_object_id); | 279 void DestroyObject(MapType* map, int32_t ipc_object_id); |
| 280 | 280 |
| 281 // Message processing. Most of the work is delegated to the dispatcher hosts | 281 // Message processing. Most of the work is delegated to the dispatcher hosts |
| 282 // below. | 282 // below. |
| 283 void OnIDBFactoryGetDatabaseNames( | 283 void OnIDBFactoryGetDatabaseNames( |
| 284 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); | 284 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); |
| 285 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); | |
| 286 | 285 |
| 287 void OnIDBFactoryDeleteDatabase( | 286 void OnIDBFactoryDeleteDatabase( |
| 288 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); | 287 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); |
| 289 | 288 |
| 290 void OnAckReceivedBlobs(const std::vector<std::string>& uuids); | 289 void OnAckReceivedBlobs(const std::vector<std::string>& uuids); |
| 291 void OnPutHelper( | 290 void OnPutHelper( |
| 292 const IndexedDBHostMsg_DatabasePut_Params& params, | 291 const IndexedDBHostMsg_DatabasePut_Params& params, |
| 293 std::vector<std::unique_ptr<storage::BlobDataHandle>> handles); | 292 std::vector<std::unique_ptr<storage::BlobDataHandle>> handles); |
| 294 | 293 |
| 295 void ResetDispatcherHosts(); | 294 void ResetDispatcherHosts(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 312 | 311 |
| 313 // Used to set file permissions for blob storage. | 312 // Used to set file permissions for blob storage. |
| 314 int ipc_process_id_; | 313 int ipc_process_id_; |
| 315 | 314 |
| 316 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 315 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 317 }; | 316 }; |
| 318 | 317 |
| 319 } // namespace content | 318 } // namespace content |
| 320 | 319 |
| 321 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 320 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |