| 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_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 WebKit::WebIDBCursor* GetCursorFromId(int32 cursor_id); | 80 WebKit::WebIDBCursor* GetCursorFromId(int32 cursor_id); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 virtual ~IndexedDBDispatcherHost(); | 83 virtual ~IndexedDBDispatcherHost(); |
| 84 | 84 |
| 85 // Message processing. Most of the work is delegated to the dispatcher hosts | 85 // Message processing. Most of the work is delegated to the dispatcher hosts |
| 86 // below. | 86 // below. |
| 87 void OnIDBFactoryGetDatabaseNames( | 87 void OnIDBFactoryGetDatabaseNames( |
| 88 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); | 88 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); |
| 89 void OnIDBFactoryOpenLegacy( |
| 90 const IndexedDBHostMsg_FactoryOpen_Params& p); |
| 89 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); | 91 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); |
| 90 | 92 |
| 91 void OnIDBFactoryDeleteDatabase( | 93 void OnIDBFactoryDeleteDatabase( |
| 92 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); | 94 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); |
| 93 | 95 |
| 94 void ResetDispatcherHosts(); | 96 void ResetDispatcherHosts(); |
| 95 | 97 |
| 96 // Helper templates. | 98 // Helper templates. |
| 97 template <class ReturnType> | 99 template <class ReturnType> |
| 98 ReturnType* GetOrTerminateProcess( | 100 ReturnType* GetOrTerminateProcess( |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 310 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 309 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 311 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 310 | 312 |
| 311 // Used to dispatch messages to the correct view host. | 313 // Used to dispatch messages to the correct view host. |
| 312 int process_id_; | 314 int process_id_; |
| 313 | 315 |
| 314 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 316 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 315 }; | 317 }; |
| 316 | 318 |
| 317 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 319 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |