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

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

Issue 12217049: Proxy WebData-based WebIDBDatabase::put (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 (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
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 void RequestIDBDatabaseGet( 128 void RequestIDBDatabaseGet(
129 int32 ipc_database_id, 129 int32 ipc_database_id,
130 int64 transaction_id, 130 int64 transaction_id,
131 int64 object_store_id, 131 int64 object_store_id,
132 int64 index_id, 132 int64 index_id,
133 const IndexedDBKeyRange& key_range, 133 const IndexedDBKeyRange& key_range,
134 bool key_only, 134 bool key_only,
135 WebKit::WebIDBCallbacks* callbacks); 135 WebKit::WebIDBCallbacks* callbacks);
136 136
137 void RequestIDBDatabasePut( 137 void RequestIDBDatabasePutOld(
138 int32 ipc_database_id, 138 int32 ipc_database_id,
139 int64 transaction_id, 139 int64 transaction_id,
140 int64 object_store_id, 140 int64 object_store_id,
141 WebKit::WebVector<unsigned char>* value, 141 WebKit::WebVector<unsigned char>* value,
142 const IndexedDBKey& key, 142 const IndexedDBKey& key,
143 WebKit::WebIDBDatabase::PutMode put_mode, 143 WebKit::WebIDBDatabase::PutMode put_mode,
144 WebKit::WebIDBCallbacks* callbacks, 144 WebKit::WebIDBCallbacks* callbacks,
145 const WebKit::WebVector<long long>& index_ids, 145 const WebKit::WebVector<long long>& index_ids,
146 const WebKit::WebVector<WebKit::WebVector< 146 const WebKit::WebVector<WebKit::WebVector<
147 WebKit::WebIDBKey> >& index_keys); 147 WebKit::WebIDBKey> >& index_keys);
148 148
149 void RequestIDBDatabasePut(
150 int32 ipc_database_id,
151 int64 transaction_id,
152 int64 object_store_id,
153 const WebKit::WebData& value,
154 const IndexedDBKey& key,
155 WebKit::WebIDBDatabase::PutMode put_mode,
156 WebKit::WebIDBCallbacks* callbacks,
157 const WebKit::WebVector<long long>& index_ids,
158 const WebKit::WebVector<WebKit::WebVector<
159 WebKit::WebIDBKey> >& index_keys);
160
149 void RequestIDBDatabaseOpenCursor( 161 void RequestIDBDatabaseOpenCursor(
150 int32 ipc_database_id, 162 int32 ipc_database_id,
151 int64 transaction_id, 163 int64 transaction_id,
152 int64 object_store_id, 164 int64 object_store_id,
153 int64 index_id, 165 int64 index_id,
154 const IndexedDBKeyRange& key_range, 166 const IndexedDBKeyRange& key_range,
155 unsigned short direction, 167 unsigned short direction,
156 bool key_only, 168 bool key_only,
157 WebKit::WebIDBDatabase::TaskType task_type, 169 WebKit::WebIDBDatabase::TaskType task_type,
158 WebKit::WebIDBCallbacks* callbacks); 170 WebKit::WebIDBCallbacks* callbacks);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 287 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
276 288
277 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 289 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
278 290
279 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 291 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
280 }; 292 };
281 293
282 } // namespace content 294 } // namespace content
283 295
284 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 296 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698