Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: content/common/indexed_db/indexed_db_dispatcher.h

Issue 10830228: Chromium glue for Preemptive cursors and passing keys from renderer to browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved dispatching to static methods, async messages Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/nullable_string16.h" 12 #include "base/nullable_string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ipc/ipc_sync_message_filter.h" 14 #include "ipc/ipc_sync_message_filter.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h"
21 #include "webkit/glue/worker_task_runner.h" 23 #include "webkit/glue/worker_task_runner.h"
22 24
23 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; 25 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params;
24 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; 26 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params;
25 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; 27 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params;
26 class RendererWebIDBCursorImpl; 28 class RendererWebIDBCursorImpl;
27 class RendererWebIDBDatabaseImpl; 29 class RendererWebIDBDatabaseImpl;
28 30
29 namespace IPC { 31 namespace IPC {
30 class Message; 32 class Message;
31 } 33 }
32 34
33 namespace WebKit { 35 namespace WebKit {
34 class WebFrame; 36 class WebFrame;
35 class WebIDBKeyRange; 37 class WebIDBKeyRange;
36 class WebIDBTransaction;
37 } 38 }
38 39
39 namespace content { 40 namespace content {
40 class IndexedDBKey; 41 class IndexedDBKey;
41 class IndexedDBKeyPath; 42 class IndexedDBKeyPath;
42 class IndexedDBKeyRange; 43 class IndexedDBKeyRange;
43 class SerializedScriptValue; 44 class SerializedScriptValue;
44 } 45 }
45 46
46 CONTENT_EXPORT extern const size_t kMaxIDBValueSizeInBytes; 47 CONTENT_EXPORT extern const size_t kMaxIDBValueSizeInBytes;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 WebKit::WebExceptionCode* ec); 185 WebKit::WebExceptionCode* ec);
185 186
186 void RequestIDBObjectStoreClear( 187 void RequestIDBObjectStoreClear(
187 WebKit::WebIDBCallbacks* callbacks, 188 WebKit::WebIDBCallbacks* callbacks,
188 int32 idb_object_store_id, 189 int32 idb_object_store_id,
189 const WebKit::WebIDBTransaction& transaction, 190 const WebKit::WebIDBTransaction& transaction,
190 WebKit::WebExceptionCode* ec); 191 WebKit::WebExceptionCode* ec);
191 192
192 void RequestIDBObjectStoreOpenCursor( 193 void RequestIDBObjectStoreOpenCursor(
193 const WebKit::WebIDBKeyRange& idb_key_range, 194 const WebKit::WebIDBKeyRange& idb_key_range,
194 unsigned short direction, 195 WebKit::WebIDBCursor::Direction direction,
195 WebKit::WebIDBCallbacks* callbacks, 196 WebKit::WebIDBCallbacks* callbacks,
196 int32 idb_object_store_id, 197 int32 idb_object_store_id,
198 WebKit::WebIDBTransaction::TaskType task_type,
197 const WebKit::WebIDBTransaction& transaction, 199 const WebKit::WebIDBTransaction& transaction,
198 WebKit::WebExceptionCode* ec); 200 WebKit::WebExceptionCode* ec);
199 201
200 void RequestIDBObjectStoreCount( 202 void RequestIDBObjectStoreCount(
201 const WebKit::WebIDBKeyRange& idb_key_range, 203 const WebKit::WebIDBKeyRange& idb_key_range,
202 WebKit::WebIDBCallbacks* callbacks, 204 WebKit::WebIDBCallbacks* callbacks,
203 int32 idb_object_store_id, 205 int32 idb_object_store_id,
204 const WebKit::WebIDBTransaction& transaction, 206 const WebKit::WebIDBTransaction& transaction,
205 WebKit::WebExceptionCode* ec); 207 WebKit::WebExceptionCode* ec);
206 208
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 282
281 // Map from cursor id to RendererWebIDBCursorImpl. 283 // Map from cursor id to RendererWebIDBCursorImpl.
282 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 284 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
283 285
284 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 286 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
285 287
286 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 288 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
287 }; 289 };
288 290
289 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 291 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/common/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698