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_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
6 #define CONTENT_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/nullable_string16.h" | 13 #include "base/nullable_string16.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h" |
20 #include "webkit/glue/worker_task_runner.h" | 20 #include "webkit/glue/worker_task_runner.h" |
21 | 21 |
22 class IndexedDBKey; | 22 class IndexedDBKey; |
23 class IndexedDBKeyRange; | |
23 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; | 24 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
24 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; | 25 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; |
25 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; | 26 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
26 class RendererWebIDBCursorImpl; | 27 class RendererWebIDBCursorImpl; |
27 | 28 |
28 namespace IPC { | 29 namespace IPC { |
29 class Message; | 30 class Message; |
30 } | 31 } |
31 | 32 |
32 namespace WebKit { | 33 namespace WebKit { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
157 const WebKit::WebIDBTransaction& transaction, | 158 const WebKit::WebIDBTransaction& transaction, |
158 WebKit::WebExceptionCode* ec); | 159 WebKit::WebExceptionCode* ec); |
159 | 160 |
160 void RequestIDBObjectStoreDelete( | 161 void RequestIDBObjectStoreDelete( |
161 const IndexedDBKey& key, | 162 const IndexedDBKey& key, |
162 WebKit::WebIDBCallbacks* callbacks, | 163 WebKit::WebIDBCallbacks* callbacks, |
163 int32 idb_object_store_id, | 164 int32 idb_object_store_id, |
164 const WebKit::WebIDBTransaction& transaction, | 165 const WebKit::WebIDBTransaction& transaction, |
165 WebKit::WebExceptionCode* ec); | 166 WebKit::WebExceptionCode* ec); |
166 | 167 |
168 void RequestIDBObjectStoreDelete( | |
michaeln
2012/02/14 20:39:33
please rename to avoid overloading here... Request
| |
169 const IndexedDBKeyRange& key_range, | |
170 WebKit::WebIDBCallbacks* callbacks, | |
171 int32 idb_object_store_id, | |
172 const WebKit::WebIDBTransaction& transaction, | |
173 WebKit::WebExceptionCode* ec); | |
174 | |
167 void RequestIDBObjectStoreClear( | 175 void RequestIDBObjectStoreClear( |
168 WebKit::WebIDBCallbacks* callbacks, | 176 WebKit::WebIDBCallbacks* callbacks, |
169 int32 idb_object_store_id, | 177 int32 idb_object_store_id, |
170 const WebKit::WebIDBTransaction& transaction, | 178 const WebKit::WebIDBTransaction& transaction, |
171 WebKit::WebExceptionCode* ec); | 179 WebKit::WebExceptionCode* ec); |
172 | 180 |
173 void RequestIDBObjectStoreOpenCursor( | 181 void RequestIDBObjectStoreOpenCursor( |
174 const WebKit::WebIDBKeyRange& idb_key_range, | 182 const WebKit::WebIDBKeyRange& idb_key_range, |
175 unsigned short direction, | 183 unsigned short direction, |
176 WebKit::WebIDBCallbacks* callbacks, | 184 WebKit::WebIDBCallbacks* callbacks, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 249 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
242 pending_database_callbacks_; | 250 pending_database_callbacks_; |
243 | 251 |
244 // Map from cursor id to RendererWebIDBCursorImpl. | 252 // Map from cursor id to RendererWebIDBCursorImpl. |
245 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 253 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
246 | 254 |
247 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 255 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
248 }; | 256 }; |
249 | 257 |
250 #endif // CONTENT_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 258 #endif // CONTENT_RENDERER_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |