| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 WebKit::WebExceptionCode* ec); | 117 WebKit::WebExceptionCode* ec); |
| 118 | 118 |
| 119 void RequestIDBIndexOpenKeyCursor( | 119 void RequestIDBIndexOpenKeyCursor( |
| 120 const WebKit::WebIDBKeyRange& idb_key_range, | 120 const WebKit::WebIDBKeyRange& idb_key_range, |
| 121 unsigned short direction, | 121 unsigned short direction, |
| 122 WebKit::WebIDBCallbacks* callbacks, | 122 WebKit::WebIDBCallbacks* callbacks, |
| 123 int32 idb_index_id, | 123 int32 idb_index_id, |
| 124 const WebKit::WebIDBTransaction& transaction, | 124 const WebKit::WebIDBTransaction& transaction, |
| 125 WebKit::WebExceptionCode* ec); | 125 WebKit::WebExceptionCode* ec); |
| 126 | 126 |
| 127 void RequestIDBIndexCount( |
| 128 const WebKit::WebIDBKeyRange& idb_key_range, |
| 129 WebKit::WebIDBCallbacks* callbacks, |
| 130 int32 idb_index_id, |
| 131 const WebKit::WebIDBTransaction& transaction, |
| 132 WebKit::WebExceptionCode* ec); |
| 133 |
| 127 void RequestIDBIndexGetObject(const IndexedDBKey& key, | 134 void RequestIDBIndexGetObject(const IndexedDBKey& key, |
| 128 WebKit::WebIDBCallbacks* callbacks, | 135 WebKit::WebIDBCallbacks* callbacks, |
| 129 int32 idb_index_id, | 136 int32 idb_index_id, |
| 130 const WebKit::WebIDBTransaction& transaction, | 137 const WebKit::WebIDBTransaction& transaction, |
| 131 WebKit::WebExceptionCode* ec); | 138 WebKit::WebExceptionCode* ec); |
| 132 | 139 |
| 133 void RequestIDBIndexGetKey(const IndexedDBKey& key, | 140 void RequestIDBIndexGetKey(const IndexedDBKey& key, |
| 134 WebKit::WebIDBCallbacks* callbacks, | 141 WebKit::WebIDBCallbacks* callbacks, |
| 135 int32 idb_index_id, | 142 int32 idb_index_id, |
| 136 const WebKit::WebIDBTransaction& transaction, | 143 const WebKit::WebIDBTransaction& transaction, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 164 WebKit::WebExceptionCode* ec); | 171 WebKit::WebExceptionCode* ec); |
| 165 | 172 |
| 166 void RequestIDBObjectStoreOpenCursor( | 173 void RequestIDBObjectStoreOpenCursor( |
| 167 const WebKit::WebIDBKeyRange& idb_key_range, | 174 const WebKit::WebIDBKeyRange& idb_key_range, |
| 168 unsigned short direction, | 175 unsigned short direction, |
| 169 WebKit::WebIDBCallbacks* callbacks, | 176 WebKit::WebIDBCallbacks* callbacks, |
| 170 int32 idb_object_store_id, | 177 int32 idb_object_store_id, |
| 171 const WebKit::WebIDBTransaction& transaction, | 178 const WebKit::WebIDBTransaction& transaction, |
| 172 WebKit::WebExceptionCode* ec); | 179 WebKit::WebExceptionCode* ec); |
| 173 | 180 |
| 181 void RequestIDBObjectStoreCount( |
| 182 const WebKit::WebIDBKeyRange& idb_key_range, |
| 183 WebKit::WebIDBCallbacks* callbacks, |
| 184 int32 idb_object_store_id, |
| 185 const WebKit::WebIDBTransaction& transaction, |
| 186 WebKit::WebExceptionCode* ec); |
| 187 |
| 174 void RegisterWebIDBTransactionCallbacks( | 188 void RegisterWebIDBTransactionCallbacks( |
| 175 WebKit::WebIDBTransactionCallbacks* callbacks, | 189 WebKit::WebIDBTransactionCallbacks* callbacks, |
| 176 int32 id); | 190 int32 id); |
| 177 | 191 |
| 178 void CursorDestroyed(int32 cursor_id); | 192 void CursorDestroyed(int32 cursor_id); |
| 179 | 193 |
| 180 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); | 194 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); |
| 181 | 195 |
| 182 private: | 196 private: |
| 183 IndexedDBDispatcher(); | 197 IndexedDBDispatcher(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 241 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 228 pending_database_callbacks_; | 242 pending_database_callbacks_; |
| 229 | 243 |
| 230 // Map from cursor id to RendererWebIDBCursorImpl. | 244 // Map from cursor id to RendererWebIDBCursorImpl. |
| 231 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 245 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 232 | 246 |
| 233 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 247 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 234 }; | 248 }; |
| 235 | 249 |
| 236 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 250 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |