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 10759012: Chromium side of plumbing for passing renderer-generated keys through IPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include unit tests too Created 8 years, 5 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 const WebKit::WebIDBTransaction& transaction, 162 const WebKit::WebIDBTransaction& transaction,
163 WebKit::WebExceptionCode* ec); 163 WebKit::WebExceptionCode* ec);
164 164
165 void RequestIDBObjectStoreGet( 165 void RequestIDBObjectStoreGet(
166 const content::IndexedDBKeyRange& key_range, 166 const content::IndexedDBKeyRange& key_range,
167 WebKit::WebIDBCallbacks* callbacks, 167 WebKit::WebIDBCallbacks* callbacks,
168 int32 idb_object_store_id, 168 int32 idb_object_store_id,
169 const WebKit::WebIDBTransaction& transaction, 169 const WebKit::WebIDBTransaction& transaction,
170 WebKit::WebExceptionCode* ec); 170 WebKit::WebExceptionCode* ec);
171 171
172 void RequestIDBObjectStorePut(const content::SerializedScriptValue& value, 172 void RequestIDBObjectStorePut(
173 const content::IndexedDBKey& key, 173 const content::SerializedScriptValue& value,
174 WebKit::WebIDBObjectStore::PutMode putMode, 174 const content::IndexedDBKey& key,
175 WebKit::WebIDBCallbacks* callbacks, 175 WebKit::WebIDBObjectStore::PutMode putMode,
176 int32 idb_object_store_id, 176 WebKit::WebIDBCallbacks* callbacks,
177 const WebKit::WebIDBTransaction& transaction, 177 int32 idb_object_store_id,
178 WebKit::WebExceptionCode* ec); 178 const WebKit::WebIDBTransaction& transaction,
179 const WebKit::WebVector<WebKit::WebString>& indexNames,
180 const WebKit::WebVector<WebKit::WebVector<WebKit::WebIDBKey> >& indexKeys,
181 WebKit::WebExceptionCode* ec);
179 182
180 void RequestIDBObjectStoreDelete( 183 void RequestIDBObjectStoreDelete(
181 const content::IndexedDBKeyRange& key_range, 184 const content::IndexedDBKeyRange& key_range,
182 WebKit::WebIDBCallbacks* callbacks, 185 WebKit::WebIDBCallbacks* callbacks,
183 int32 idb_object_store_id, 186 int32 idb_object_store_id,
184 const WebKit::WebIDBTransaction& transaction, 187 const WebKit::WebIDBTransaction& transaction,
185 WebKit::WebExceptionCode* ec); 188 WebKit::WebExceptionCode* ec);
186 189
187 void RequestIDBObjectStoreClear( 190 void RequestIDBObjectStoreClear(
188 WebKit::WebIDBCallbacks* callbacks, 191 WebKit::WebIDBCallbacks* callbacks,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> 265 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer>
263 pending_database_callbacks_; 266 pending_database_callbacks_;
264 267
265 // Map from cursor id to RendererWebIDBCursorImpl. 268 // Map from cursor id to RendererWebIDBCursorImpl.
266 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 269 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
267 270
268 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 271 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
269 }; 272 };
270 273
271 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 274 #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