OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |