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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_CHILD_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/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/id_map.h" 12 #include "base/id_map.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/nullable_string16.h" 14 #include "base/strings/nullable_string16.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "ipc/ipc_sync_message_filter.h" 16 #include "ipc/ipc_sync_message_filter.h"
17 #include "third_party/WebKit/public/platform/WebBlobInfo.h"
17 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
18 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 19 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
19 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 20 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
20 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" 21 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h"
21 #include "webkit/child/worker_task_runner.h" 22 #include "webkit/child/worker_task_runner.h"
22 23
23 struct IndexedDBDatabaseMetadata; 24 struct IndexedDBDatabaseMetadata;
24 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; 25 struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params;
25 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; 26 struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params;
26 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; 27 struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params;
28 struct IndexedDBMsg_CallbacksSuccessValue_Params;
29 struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params;
27 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params; 30 struct IndexedDBMsg_CallbacksUpgradeNeeded_Params;
28 31
29 namespace WebKit { 32 namespace WebKit {
30 class WebData; 33 class WebData;
31 } 34 }
32 35
33 namespace content { 36 namespace content {
34 class IndexedDBKey; 37 class IndexedDBKey;
35 class IndexedDBKeyPath; 38 class IndexedDBKeyPath;
36 class IndexedDBKeyRange; 39 class IndexedDBKeyRange;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int64 index_id, 117 int64 index_id,
115 const IndexedDBKeyRange& key_range, 118 const IndexedDBKeyRange& key_range,
116 bool key_only, 119 bool key_only,
117 WebKit::WebIDBCallbacks* callbacks); 120 WebKit::WebIDBCallbacks* callbacks);
118 121
119 void RequestIDBDatabasePut( 122 void RequestIDBDatabasePut(
120 int32 ipc_database_id, 123 int32 ipc_database_id,
121 int64 transaction_id, 124 int64 transaction_id,
122 int64 object_store_id, 125 int64 object_store_id,
123 const WebKit::WebData& value, 126 const WebKit::WebData& value,
127 const WebKit::WebVector<WebKit::WebBlobInfo>& blobInfo,
124 const IndexedDBKey& key, 128 const IndexedDBKey& key,
125 WebKit::WebIDBDatabase::PutMode put_mode, 129 WebKit::WebIDBDatabase::PutMode put_mode,
126 WebKit::WebIDBCallbacks* callbacks, 130 WebKit::WebIDBCallbacks* callbacks,
127 const WebKit::WebVector<long long>& index_ids, 131 const WebKit::WebVector<long long>& index_ids,
128 const WebKit::WebVector<WebKit::WebVector<WebKit::WebIDBKey> >& 132 const WebKit::WebVector<WebKit::WebVector<WebKit::WebIDBKey> >&
129 index_keys); 133 index_keys);
130 134
131 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id, 135 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id,
132 int64 transaction_id, 136 int64 transaction_id,
133 int64 object_store_id, 137 int64 object_store_id,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 189
186 void OnSuccessOpenCursor( 190 void OnSuccessOpenCursor(
187 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); 191 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p);
188 void OnSuccessCursorContinue( 192 void OnSuccessCursorContinue(
189 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); 193 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p);
190 void OnSuccessCursorPrefetch( 194 void OnSuccessCursorPrefetch(
191 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); 195 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p);
192 void OnSuccessStringList(int32 ipc_thread_id, 196 void OnSuccessStringList(int32 ipc_thread_id,
193 int32 ipc_callbacks_id, 197 int32 ipc_callbacks_id,
194 const std::vector<string16>& value); 198 const std::vector<string16>& value);
195 void OnSuccessValue(int32 ipc_thread_id, 199 void OnSuccessValue(const IndexedDBMsg_CallbacksSuccessValue_Params& p);
196 int32 ipc_callbacks_id, 200 void OnSuccessValueWithKey(
197 const std::string& value); 201 const IndexedDBMsg_CallbacksSuccessValueWithKey_Params& p);
198 void OnSuccessValueWithKey(int32 ipc_thread_id,
199 int32 ipc_callbacks_id,
200 const std::string& value,
201 const IndexedDBKey& primary_key,
202 const IndexedDBKeyPath& key_path);
203 void OnSuccessInteger(int32 ipc_thread_id, 202 void OnSuccessInteger(int32 ipc_thread_id,
204 int32 ipc_callbacks_id, 203 int32 ipc_callbacks_id,
205 int64 value); 204 int64 value);
206 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id); 205 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id);
207 void OnError(int32 ipc_thread_id, 206 void OnError(int32 ipc_thread_id,
208 int32 ipc_callbacks_id, 207 int32 ipc_callbacks_id,
209 int code, 208 int code,
210 const string16& message); 209 const string16& message);
211 void OnIntBlocked(int32 ipc_thread_id, 210 void OnIntBlocked(int32 ipc_thread_id,
212 int32 ipc_callbacks_id, 211 int32 ipc_callbacks_id,
(...skipping 28 matching lines...) Expand all
241 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 240 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
242 241
243 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 242 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
244 243
245 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 244 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
246 }; 245 };
247 246
248 } // namespace content 247 } // namespace content
249 248
250 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 249 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698