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 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; | 17 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; |
| 18 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; |
18 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; | 19 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; |
19 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; | |
20 struct IndexedDBHostMsg_FactoryOpen_Params; | 20 struct IndexedDBHostMsg_FactoryOpen_Params; |
| 21 struct IndexedDBHostMsg_IndexCount_Params; |
21 struct IndexedDBHostMsg_IndexOpenCursor_Params; | 22 struct IndexedDBHostMsg_IndexOpenCursor_Params; |
| 23 struct IndexedDBHostMsg_ObjectStoreCount_Params; |
22 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; | 24 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; |
23 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; | 25 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; |
24 struct IndexedDBHostMsg_ObjectStorePut_Params; | 26 struct IndexedDBHostMsg_ObjectStorePut_Params; |
25 | 27 |
26 namespace WebKit { | 28 namespace WebKit { |
27 class WebDOMStringList; | 29 class WebDOMStringList; |
28 class WebIDBCursor; | 30 class WebIDBCursor; |
29 class WebIDBDatabase; | 31 class WebIDBDatabase; |
30 class WebIDBIndex; | 32 class WebIDBIndex; |
31 class WebIDBObjectStore; | 33 class WebIDBObjectStore; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 147 |
146 void OnName(int32 idb_index_id, string16* name); | 148 void OnName(int32 idb_index_id, string16* name); |
147 void OnStoreName(int32 idb_index_id, string16* store_name); | 149 void OnStoreName(int32 idb_index_id, string16* store_name); |
148 void OnKeyPath(int32 idb_index_id, NullableString16* key_path); | 150 void OnKeyPath(int32 idb_index_id, NullableString16* key_path); |
149 void OnUnique(int32 idb_index_id, bool* unique); | 151 void OnUnique(int32 idb_index_id, bool* unique); |
150 void OnOpenObjectCursor( | 152 void OnOpenObjectCursor( |
151 const IndexedDBHostMsg_IndexOpenCursor_Params& params, | 153 const IndexedDBHostMsg_IndexOpenCursor_Params& params, |
152 WebKit::WebExceptionCode* ec); | 154 WebKit::WebExceptionCode* ec); |
153 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params, | 155 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params, |
154 WebKit::WebExceptionCode* ec); | 156 WebKit::WebExceptionCode* ec); |
| 157 void OnCount(const IndexedDBHostMsg_IndexCount_Params& params, |
| 158 WebKit::WebExceptionCode* ec); |
155 void OnGetObject(int idb_index_id, | 159 void OnGetObject(int idb_index_id, |
156 int32 response_id, | 160 int32 response_id, |
157 const IndexedDBKey& key, | 161 const IndexedDBKey& key, |
158 int32 transaction_id, | 162 int32 transaction_id, |
159 WebKit::WebExceptionCode* ec); | 163 WebKit::WebExceptionCode* ec); |
160 void OnGetKey(int idb_index_id, | 164 void OnGetKey(int idb_index_id, |
161 int32 response_id, | 165 int32 response_id, |
162 const IndexedDBKey& key, | 166 const IndexedDBKey& key, |
163 int32 transaction_id, | 167 int32 transaction_id, |
164 WebKit::WebExceptionCode* ec); | 168 WebKit::WebExceptionCode* ec); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const string16& name, | 208 const string16& name, |
205 int32* idb_index_id, | 209 int32* idb_index_id, |
206 WebKit::WebExceptionCode* ec); | 210 WebKit::WebExceptionCode* ec); |
207 void OnDeleteIndex(int32 idb_object_store_id, | 211 void OnDeleteIndex(int32 idb_object_store_id, |
208 const string16& name, | 212 const string16& name, |
209 int32 transaction_id, | 213 int32 transaction_id, |
210 WebKit::WebExceptionCode* ec); | 214 WebKit::WebExceptionCode* ec); |
211 void OnOpenCursor( | 215 void OnOpenCursor( |
212 const IndexedDBHostMsg_ObjectStoreOpenCursor_Params& params, | 216 const IndexedDBHostMsg_ObjectStoreOpenCursor_Params& params, |
213 WebKit::WebExceptionCode* ec); | 217 WebKit::WebExceptionCode* ec); |
| 218 void OnCount(const IndexedDBHostMsg_ObjectStoreCount_Params& params, |
| 219 WebKit::WebExceptionCode* ec); |
214 void OnDestroyed(int32 idb_object_store_id); | 220 void OnDestroyed(int32 idb_object_store_id); |
215 | 221 |
216 IndexedDBDispatcherHost* parent_; | 222 IndexedDBDispatcherHost* parent_; |
217 IDMap<WebKit::WebIDBObjectStore, IDMapOwnPointer> map_; | 223 IDMap<WebKit::WebIDBObjectStore, IDMapOwnPointer> map_; |
218 }; | 224 }; |
219 | 225 |
220 class CursorDispatcherHost { | 226 class CursorDispatcherHost { |
221 public: | 227 public: |
222 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); | 228 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); |
223 ~CursorDispatcherHost(); | 229 ~CursorDispatcherHost(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 294 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
289 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 295 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
290 | 296 |
291 // Used to dispatch messages to the correct view host. | 297 // Used to dispatch messages to the correct view host. |
292 int process_id_; | 298 int process_id_; |
293 | 299 |
294 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 300 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
295 }; | 301 }; |
296 | 302 |
297 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 303 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |