| 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" |
| 11 #include "content/browser/browser_message_filter.h" | 11 #include "content/browser/browser_message_filter.h" |
| 12 #include "content/browser/in_process_webkit/webkit_context.h" | 12 #include "content/browser/in_process_webkit/webkit_context.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
| 14 | 14 |
| 15 class IndexedDBKey; | 15 class IndexedDBKey; |
| 16 class NullableString16; | 16 class NullableString16; |
| 17 class Profile; | |
| 18 class SerializedScriptValue; | 17 class SerializedScriptValue; |
| 19 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; | 18 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; |
| 20 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; | 19 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; |
| 21 struct IndexedDBHostMsg_FactoryOpen_Params; | 20 struct IndexedDBHostMsg_FactoryOpen_Params; |
| 22 struct IndexedDBHostMsg_IndexOpenCursor_Params; | 21 struct IndexedDBHostMsg_IndexOpenCursor_Params; |
| 23 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; | 22 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; |
| 24 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; | 23 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; |
| 25 struct IndexedDBHostMsg_ObjectStorePut_Params; | 24 struct IndexedDBHostMsg_ObjectStorePut_Params; |
| 26 | 25 |
| 27 namespace WebKit { | 26 namespace WebKit { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void OnDidCompleteTaskEvents(int transaction_id); | 255 void OnDidCompleteTaskEvents(int transaction_id); |
| 257 void OnDestroyed(int32 idb_transaction_id); | 256 void OnDestroyed(int32 idb_transaction_id); |
| 258 | 257 |
| 259 IndexedDBDispatcherHost* parent_; | 258 IndexedDBDispatcherHost* parent_; |
| 260 typedef IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> MapType; | 259 typedef IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> MapType; |
| 261 MapType map_; | 260 MapType map_; |
| 262 WebIDBObjectIDToURLMap transaction_url_map_; | 261 WebIDBObjectIDToURLMap transaction_url_map_; |
| 263 WebIDBTransactionIDToSizeMap transaction_size_map_; | 262 WebIDBTransactionIDToSizeMap transaction_size_map_; |
| 264 }; | 263 }; |
| 265 | 264 |
| 266 // Data shared between renderer processes with the same profile. | 265 // Data shared between renderer processes with the same browser context. |
| 267 scoped_refptr<WebKitContext> webkit_context_; | 266 scoped_refptr<WebKitContext> webkit_context_; |
| 268 | 267 |
| 269 // Only access on WebKit thread. | 268 // Only access on WebKit thread. |
| 270 scoped_ptr<DatabaseDispatcherHost> database_dispatcher_host_; | 269 scoped_ptr<DatabaseDispatcherHost> database_dispatcher_host_; |
| 271 scoped_ptr<IndexDispatcherHost> index_dispatcher_host_; | 270 scoped_ptr<IndexDispatcherHost> index_dispatcher_host_; |
| 272 scoped_ptr<ObjectStoreDispatcherHost> object_store_dispatcher_host_; | 271 scoped_ptr<ObjectStoreDispatcherHost> object_store_dispatcher_host_; |
| 273 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 272 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 274 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 273 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 275 | 274 |
| 276 // Used to dispatch messages to the correct view host. | 275 // Used to dispatch messages to the correct view host. |
| 277 int process_id_; | 276 int process_id_; |
| 278 | 277 |
| 279 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 278 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 280 }; | 279 }; |
| 281 | 280 |
| 282 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 281 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |