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