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); | |
91 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); | 89 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); |
92 | 90 |
93 void OnIDBFactoryDeleteDatabase( | 91 void OnIDBFactoryDeleteDatabase( |
94 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); | 92 const IndexedDBHostMsg_FactoryDeleteDatabase_Params& p); |
95 | 93 |
96 void ResetDispatcherHosts(); | 94 void ResetDispatcherHosts(); |
97 | 95 |
98 // Helper templates. | 96 // Helper templates. |
99 template <class ReturnType> | 97 template <class ReturnType> |
100 ReturnType* GetOrTerminateProcess( | 98 ReturnType* GetOrTerminateProcess( |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 308 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
311 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 309 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
312 | 310 |
313 // Used to dispatch messages to the correct view host. | 311 // Used to dispatch messages to the correct view host. |
314 int process_id_; | 312 int process_id_; |
315 | 313 |
316 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 314 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
317 }; | 315 }; |
318 | 316 |
319 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 317 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |