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 #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/in_process_webkit/webkit_context.h" | 11 #include "content/browser/in_process_webkit/webkit_context.h" |
12 #include "content/public/browser/browser_message_filter.h" | 12 #include "content/public/browser/browser_message_filter.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 IndexedDBKeyRange; |
16 class NullableString16; | 17 class NullableString16; |
17 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; | 18 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; |
18 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; | 19 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; |
19 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; | 20 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; |
20 struct IndexedDBHostMsg_FactoryOpen_Params; | 21 struct IndexedDBHostMsg_FactoryOpen_Params; |
21 struct IndexedDBHostMsg_IndexCount_Params; | 22 struct IndexedDBHostMsg_IndexCount_Params; |
22 struct IndexedDBHostMsg_IndexOpenCursor_Params; | 23 struct IndexedDBHostMsg_IndexOpenCursor_Params; |
23 struct IndexedDBHostMsg_ObjectStoreCount_Params; | 24 struct IndexedDBHostMsg_ObjectStoreCount_Params; |
24 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; | 25 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; |
25 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; | 26 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 int32 transaction_id, | 201 int32 transaction_id, |
201 WebKit::WebExceptionCode* ec); | 202 WebKit::WebExceptionCode* ec); |
202 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, | 203 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, |
203 WebKit::WebExceptionCode* ec); | 204 WebKit::WebExceptionCode* ec); |
204 void OnDelete(int idb_object_store_id, | 205 void OnDelete(int idb_object_store_id, |
205 int32 thread_id, | 206 int32 thread_id, |
206 int32 response_id, | 207 int32 response_id, |
207 const IndexedDBKey& key, | 208 const IndexedDBKey& key, |
208 int32 transaction_id, | 209 int32 transaction_id, |
209 WebKit::WebExceptionCode* ec); | 210 WebKit::WebExceptionCode* ec); |
| 211 void OnDeleteRange(int idb_object_store_id, |
| 212 int32 thread_id, |
| 213 int32 response_id, |
| 214 const IndexedDBKeyRange& key_range, |
| 215 int32 transaction_id, |
| 216 WebKit::WebExceptionCode* ec); |
210 void OnClear(int idb_object_store_id, | 217 void OnClear(int idb_object_store_id, |
211 int32 thread_id, | 218 int32 thread_id, |
212 int32 response_id, | 219 int32 response_id, |
213 int32 transaction_id, | 220 int32 transaction_id, |
214 WebKit::WebExceptionCode* ec); | 221 WebKit::WebExceptionCode* ec); |
215 void OnCreateIndex( | 222 void OnCreateIndex( |
216 const IndexedDBHostMsg_ObjectStoreCreateIndex_Params& params, | 223 const IndexedDBHostMsg_ObjectStoreCreateIndex_Params& params, |
217 int32* index_id, | 224 int32* index_id, |
218 WebKit::WebExceptionCode* ec); | 225 WebKit::WebExceptionCode* ec); |
219 void OnIndex(int32 idb_object_store_id, | 226 void OnIndex(int32 idb_object_store_id, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 317 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
311 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 318 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
312 | 319 |
313 // Used to dispatch messages to the correct view host. | 320 // Used to dispatch messages to the correct view host. |
314 int process_id_; | 321 int process_id_; |
315 | 322 |
316 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 323 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
317 }; | 324 }; |
318 | 325 |
319 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 326 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |