Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: content/browser/indexed_db/indexed_db_dispatcher_host.h

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_error.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698