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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 int32 idb_cursor_id); | 101 int32 idb_cursor_id); |
102 | 102 |
103 void RequestIDBCursorDelete( | 103 void RequestIDBCursorDelete( |
104 WebKit::WebIDBCallbacks* callbacks_ptr, | 104 WebKit::WebIDBCallbacks* callbacks_ptr, |
105 int32 idb_cursor_id, | 105 int32 idb_cursor_id, |
106 WebKit::WebExceptionCode* ec); | 106 WebKit::WebExceptionCode* ec); |
107 | 107 |
108 void RequestIDBDatabaseClose( | 108 void RequestIDBDatabaseClose( |
109 int32 idb_database_id); | 109 int32 idb_database_id); |
110 | 110 |
111 void RequestIDBDatabaseSetVersion( | |
112 const string16& version, | |
113 WebKit::WebIDBCallbacks* callbacks, | |
114 int32 idb_database_id, | |
115 WebKit::WebExceptionCode* ec); | |
116 | |
117 void RequestIDBIndexOpenObjectCursor( | 111 void RequestIDBIndexOpenObjectCursor( |
118 const WebKit::WebIDBKeyRange& idb_key_range, | 112 const WebKit::WebIDBKeyRange& idb_key_range, |
119 unsigned short direction, | 113 unsigned short direction, |
120 WebKit::WebIDBCallbacks* callbacks, | 114 WebKit::WebIDBCallbacks* callbacks, |
121 int32 idb_index_id, | 115 int32 idb_index_id, |
122 const WebKit::WebIDBTransaction& transaction, | 116 const WebKit::WebIDBTransaction& transaction, |
123 WebKit::WebExceptionCode* ec); | 117 WebKit::WebExceptionCode* ec); |
124 | 118 |
125 void RequestIDBIndexOpenKeyCursor( | 119 void RequestIDBIndexOpenKeyCursor( |
126 const WebKit::WebIDBKeyRange& idb_key_range, | 120 const WebKit::WebIDBKeyRange& idb_key_range, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 private: | 204 private: |
211 FRIEND_TEST_ALL_PREFIXES(IndexedDBDispatcherTest, ValueSizeTest); | 205 FRIEND_TEST_ALL_PREFIXES(IndexedDBDispatcherTest, ValueSizeTest); |
212 | 206 |
213 // IDBCallback message handlers. | 207 // IDBCallback message handlers. |
214 void OnSuccessIDBDatabase(int32 thread_id, | 208 void OnSuccessIDBDatabase(int32 thread_id, |
215 int32 response_id, | 209 int32 response_id, |
216 int32 object_id); | 210 int32 object_id); |
217 void OnSuccessIndexedDBKey(int32 thread_id, | 211 void OnSuccessIndexedDBKey(int32 thread_id, |
218 int32 response_id, | 212 int32 response_id, |
219 const IndexedDBKey& key); | 213 const IndexedDBKey& key); |
220 void OnSuccessIDBTransaction(int32 thread_id, | |
221 int32 response_id, | |
222 int32 object_id); | |
223 void OnSuccessOpenCursor( | 214 void OnSuccessOpenCursor( |
224 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); | 215 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); |
225 void OnSuccessCursorContinue( | 216 void OnSuccessCursorContinue( |
226 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); | 217 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); |
227 void OnSuccessCursorPrefetch( | 218 void OnSuccessCursorPrefetch( |
228 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); | 219 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); |
229 void OnSuccessStringList(int32 thread_id, | 220 void OnSuccessStringList(int32 thread_id, |
230 int32 response_id, | 221 int32 response_id, |
231 const std::vector<string16>& value); | 222 const std::vector<string16>& value); |
232 void OnSuccessSerializedScriptValue( | 223 void OnSuccessSerializedScriptValue( |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 277 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
287 | 278 |
288 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; | 279 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; |
289 | 280 |
290 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 281 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
291 }; | 282 }; |
292 | 283 |
293 } // namespace content | 284 } // namespace content |
294 | 285 |
295 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 286 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |