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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void OnDeleteObjectStore(int32 idb_database_id, | 105 void OnDeleteObjectStore(int32 idb_database_id, |
106 const string16& name, | 106 const string16& name, |
107 int32 transaction_id, | 107 int32 transaction_id, |
108 WebKit::WebExceptionCode* ec); | 108 WebKit::WebExceptionCode* ec); |
109 void OnSetVersion(int32 idb_database_id, | 109 void OnSetVersion(int32 idb_database_id, |
110 int32 response_id, | 110 int32 response_id, |
111 const string16& version, | 111 const string16& version, |
112 WebKit::WebExceptionCode* ec); | 112 WebKit::WebExceptionCode* ec); |
113 void OnTransaction(int32 idb_database_id, | 113 void OnTransaction(int32 idb_database_id, |
114 const std::vector<string16>& names, | 114 const std::vector<string16>& names, |
115 int32 mode, int32 timeout, | 115 int32 mode, |
116 int32* idb_transaction_id, | 116 int32* idb_transaction_id, |
117 WebKit::WebExceptionCode* ec); | 117 WebKit::WebExceptionCode* ec); |
118 void OnOpen(int32 idb_database_id, int32 response_id); | 118 void OnOpen(int32 idb_database_id, int32 response_id); |
119 void OnClose(int32 idb_database_id); | 119 void OnClose(int32 idb_database_id); |
120 void OnDestroyed(int32 idb_database_id); | 120 void OnDestroyed(int32 idb_database_id); |
121 | 121 |
122 IndexedDBDispatcherHost* parent_; | 122 IndexedDBDispatcherHost* parent_; |
123 IDMap<WebKit::WebIDBDatabase, IDMapOwnPointer> map_; | 123 IDMap<WebKit::WebIDBDatabase, IDMapOwnPointer> map_; |
124 WebIDBObjectIDToURLMap database_url_map_; | 124 WebIDBObjectIDToURLMap database_url_map_; |
125 }; | 125 }; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); | 211 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); |
212 ~CursorDispatcherHost(); | 212 ~CursorDispatcherHost(); |
213 | 213 |
214 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 214 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
215 void Send(IPC::Message* message); | 215 void Send(IPC::Message* message); |
216 | 216 |
217 void OnDirection(int32 idb_object_store_id, int32* direction); | 217 void OnDirection(int32 idb_object_store_id, int32* direction); |
218 void OnKey(int32 idb_object_store_id, IndexedDBKey* key); | 218 void OnKey(int32 idb_object_store_id, IndexedDBKey* key); |
219 void OnPrimaryKey(int32 idb_object_store_id, IndexedDBKey* primary_key); | 219 void OnPrimaryKey(int32 idb_object_store_id, IndexedDBKey* primary_key); |
220 void OnValue(int32 idb_object_store_id, | 220 void OnValue(int32 idb_object_store_id, |
221 SerializedScriptValue* script_value, | 221 SerializedScriptValue* script_value); |
222 IndexedDBKey* key); | |
223 void OnUpdate(int32 idb_object_store_id, | 222 void OnUpdate(int32 idb_object_store_id, |
224 int32 response_id, | 223 int32 response_id, |
225 const SerializedScriptValue& value, | 224 const SerializedScriptValue& value, |
226 WebKit::WebExceptionCode* ec); | 225 WebKit::WebExceptionCode* ec); |
227 void OnContinue(int32 idb_object_store_id, | 226 void OnContinue(int32 idb_object_store_id, |
228 int32 response_id, | 227 int32 response_id, |
229 const IndexedDBKey& key, | 228 const IndexedDBKey& key, |
230 WebKit::WebExceptionCode* ec); | 229 WebKit::WebExceptionCode* ec); |
231 void OnDelete(int32 idb_object_store_id, | 230 void OnDelete(int32 idb_object_store_id, |
232 int32 response_id, | 231 int32 response_id, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 271 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
273 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 272 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
274 | 273 |
275 // Used to dispatch messages to the correct view host. | 274 // Used to dispatch messages to the correct view host. |
276 int process_id_; | 275 int process_id_; |
277 | 276 |
278 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 277 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
279 }; | 278 }; |
280 | 279 |
281 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 280 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |