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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 int32 idb_index_id, | 141 int32 idb_index_id, |
142 const WebKit::WebIDBTransaction& transaction, | 142 const WebKit::WebIDBTransaction& transaction, |
143 WebKit::WebExceptionCode* ec); | 143 WebKit::WebExceptionCode* ec); |
144 | 144 |
145 void RequestIDBIndexGetObject(const IndexedDBKey& key, | 145 void RequestIDBIndexGetObject(const IndexedDBKey& key, |
146 WebKit::WebIDBCallbacks* callbacks, | 146 WebKit::WebIDBCallbacks* callbacks, |
147 int32 idb_index_id, | 147 int32 idb_index_id, |
148 const WebKit::WebIDBTransaction& transaction, | 148 const WebKit::WebIDBTransaction& transaction, |
149 WebKit::WebExceptionCode* ec); | 149 WebKit::WebExceptionCode* ec); |
150 | 150 |
| 151 void RequestIDBIndexGetObjectByRange( |
| 152 const IndexedDBKeyRange& key_range, |
| 153 WebKit::WebIDBCallbacks* callbacks, |
| 154 int32 idb_index_id, |
| 155 const WebKit::WebIDBTransaction& transaction, |
| 156 WebKit::WebExceptionCode* ec); |
| 157 |
151 void RequestIDBIndexGetKey(const IndexedDBKey& key, | 158 void RequestIDBIndexGetKey(const IndexedDBKey& key, |
152 WebKit::WebIDBCallbacks* callbacks, | 159 WebKit::WebIDBCallbacks* callbacks, |
153 int32 idb_index_id, | 160 int32 idb_index_id, |
154 const WebKit::WebIDBTransaction& transaction, | 161 const WebKit::WebIDBTransaction& transaction, |
155 WebKit::WebExceptionCode* ec); | 162 WebKit::WebExceptionCode* ec); |
156 | 163 |
| 164 void RequestIDBIndexGetKeyByRange( |
| 165 const IndexedDBKeyRange& key_range, |
| 166 WebKit::WebIDBCallbacks* callbacks, |
| 167 int32 idb_index_id, |
| 168 const WebKit::WebIDBTransaction& transaction, |
| 169 WebKit::WebExceptionCode* ec); |
| 170 |
157 void RequestIDBObjectStoreGet(const IndexedDBKey& key, | 171 void RequestIDBObjectStoreGet(const IndexedDBKey& key, |
158 WebKit::WebIDBCallbacks* callbacks, | 172 WebKit::WebIDBCallbacks* callbacks, |
159 int32 idb_object_store_id, | 173 int32 idb_object_store_id, |
160 const WebKit::WebIDBTransaction& transaction, | 174 const WebKit::WebIDBTransaction& transaction, |
161 WebKit::WebExceptionCode* ec); | 175 WebKit::WebExceptionCode* ec); |
162 | 176 |
| 177 void RequestIDBObjectStoreGetByRange( |
| 178 const IndexedDBKeyRange& key_range, |
| 179 WebKit::WebIDBCallbacks* callbacks, |
| 180 int32 idb_object_store_id, |
| 181 const WebKit::WebIDBTransaction& transaction, |
| 182 WebKit::WebExceptionCode* ec); |
| 183 |
163 void RequestIDBObjectStorePut(const content::SerializedScriptValue& value, | 184 void RequestIDBObjectStorePut(const content::SerializedScriptValue& value, |
164 const IndexedDBKey& key, | 185 const IndexedDBKey& key, |
165 WebKit::WebIDBObjectStore::PutMode putMode, | 186 WebKit::WebIDBObjectStore::PutMode putMode, |
166 WebKit::WebIDBCallbacks* callbacks, | 187 WebKit::WebIDBCallbacks* callbacks, |
167 int32 idb_object_store_id, | 188 int32 idb_object_store_id, |
168 const WebKit::WebIDBTransaction& transaction, | 189 const WebKit::WebIDBTransaction& transaction, |
169 WebKit::WebExceptionCode* ec); | 190 WebKit::WebExceptionCode* ec); |
170 | 191 |
171 void RequestIDBObjectStoreDelete( | 192 void RequestIDBObjectStoreDelete( |
172 const IndexedDBKey& key, | 193 const IndexedDBKey& key, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 281 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
261 pending_database_callbacks_; | 282 pending_database_callbacks_; |
262 | 283 |
263 // Map from cursor id to RendererWebIDBCursorImpl. | 284 // Map from cursor id to RendererWebIDBCursorImpl. |
264 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 285 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
265 | 286 |
266 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 287 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
267 }; | 288 }; |
268 | 289 |
269 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 290 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |