Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 | 58 |
| 59 // The various IndexedDBCallbacks children call these methods to add the | 59 // The various IndexedDBCallbacks children call these methods to add the |
| 60 // results into the applicable map. See below for more details. | 60 // results into the applicable map. See below for more details. |
| 61 int32 Add(WebKit::WebIDBCursor* idb_cursor); | 61 int32 Add(WebKit::WebIDBCursor* idb_cursor); |
| 62 int32 Add(WebKit::WebIDBDatabase* idb_database, const GURL& origin_url); | 62 int32 Add(WebKit::WebIDBDatabase* idb_database, const GURL& origin_url); |
| 63 int32 Add(WebKit::WebIDBIndex* idb_index); | 63 int32 Add(WebKit::WebIDBIndex* idb_index); |
| 64 int32 Add(WebKit::WebIDBObjectStore* idb_object_store); | 64 int32 Add(WebKit::WebIDBObjectStore* idb_object_store); |
| 65 int32 Add(WebKit::WebIDBTransaction* idb_transaction, const GURL& origin_url); | 65 int32 Add(WebKit::WebIDBTransaction* idb_transaction, const GURL& origin_url); |
| 66 int32 Add(WebKit::WebDOMStringList* domStringList); | 66 int32 Add(WebKit::WebDOMStringList* domStringList); |
| 67 | 67 |
| 68 WebKit::WebIDBCursor* getCursorFromId(int32 cursor_id); | |
|
michaeln
2011/11/01 18:38:37
upper case method names
hans
2011/11/02 17:16:58
Done.
| |
| 69 | |
| 68 private: | 70 private: |
| 69 virtual ~IndexedDBDispatcherHost(); | 71 virtual ~IndexedDBDispatcherHost(); |
| 70 | 72 |
| 71 // Message processing. Most of the work is delegated to the dispatcher hosts | 73 // Message processing. Most of the work is delegated to the dispatcher hosts |
| 72 // below. | 74 // below. |
| 73 void OnIDBFactoryGetDatabaseNames( | 75 void OnIDBFactoryGetDatabaseNames( |
| 74 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); | 76 const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& p); |
| 75 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); | 77 void OnIDBFactoryOpen(const IndexedDBHostMsg_FactoryOpen_Params& p); |
| 76 | 78 |
| 77 void OnIDBFactoryDeleteDatabase( | 79 void OnIDBFactoryDeleteDatabase( |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 279 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 281 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 280 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 282 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 281 | 283 |
| 282 // Used to dispatch messages to the correct view host. | 284 // Used to dispatch messages to the correct view host. |
| 283 int process_id_; | 285 int process_id_; |
| 284 | 286 |
| 285 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 287 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 290 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |