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

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

Issue 229483003: WebBlobInfo plumbing for WebIDBDatabaseImpl::put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in Josh's feedback. Created 6 years, 8 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
« no previous file with comments | « no previous file | content/child/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/child/worker_task_runner.h" 15 #include "content/child/worker_task_runner.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "ipc/ipc_sync_message_filter.h" 17 #include "ipc/ipc_sync_message_filter.h"
18 #include "third_party/WebKit/public/platform/WebBlobInfo.h"
18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" 19 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
19 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 20 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
20 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 21 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
21 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" 22 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.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;
27 struct IndexedDBMsg_CallbacksSuccessValue_Params; 28 struct IndexedDBMsg_CallbacksSuccessValue_Params;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int64 index_id, 125 int64 index_id,
125 const IndexedDBKeyRange& key_range, 126 const IndexedDBKeyRange& key_range,
126 bool key_only, 127 bool key_only,
127 blink::WebIDBCallbacks* callbacks); 128 blink::WebIDBCallbacks* callbacks);
128 129
129 void RequestIDBDatabasePut( 130 void RequestIDBDatabasePut(
130 int32 ipc_database_id, 131 int32 ipc_database_id,
131 int64 transaction_id, 132 int64 transaction_id,
132 int64 object_store_id, 133 int64 object_store_id,
133 const blink::WebData& value, 134 const blink::WebData& value,
135 const blink::WebVector<blink::WebBlobInfo>& web_blob_info,
134 const IndexedDBKey& key, 136 const IndexedDBKey& key,
135 blink::WebIDBDatabase::PutMode put_mode, 137 blink::WebIDBDatabase::PutMode put_mode,
136 blink::WebIDBCallbacks* callbacks, 138 blink::WebIDBCallbacks* callbacks,
137 const blink::WebVector<long long>& index_ids, 139 const blink::WebVector<long long>& index_ids,
138 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >& 140 const blink::WebVector<blink::WebVector<blink::WebIDBKey> >&
139 index_keys); 141 index_keys);
140 142
141 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id, 143 void RequestIDBDatabaseOpenCursor(int32 ipc_database_id,
142 int64 transaction_id, 144 int64 transaction_id,
143 int64 object_store_id, 145 int64 object_store_id,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 std::map<int32, WebIDBCursorImpl*> cursors_; 258 std::map<int32, WebIDBCursorImpl*> cursors_;
257 259
258 std::map<int32, WebIDBDatabaseImpl*> databases_; 260 std::map<int32, WebIDBDatabaseImpl*> databases_;
259 261
260 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 262 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
261 }; 263 };
262 264
263 } // namespace content 265 } // namespace content
264 266
265 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 267 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698