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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 WebKit::WebIDBCallbacks* callbacks, | 79 WebKit::WebIDBCallbacks* callbacks, |
80 const string16& origin, | 80 const string16& origin, |
81 WebKit::WebFrame* web_frame); | 81 WebKit::WebFrame* web_frame); |
82 | 82 |
83 void RequestIDBCursorUpdate( | 83 void RequestIDBCursorUpdate( |
84 const content::SerializedScriptValue& value, | 84 const content::SerializedScriptValue& value, |
85 WebKit::WebIDBCallbacks* callbacks_ptr, | 85 WebKit::WebIDBCallbacks* callbacks_ptr, |
86 int32 idb_cursor_id, | 86 int32 idb_cursor_id, |
87 WebKit::WebExceptionCode* ec); | 87 WebKit::WebExceptionCode* ec); |
88 | 88 |
| 89 void RequestIDBCursorAdvance( |
| 90 unsigned long count, |
| 91 WebKit::WebIDBCallbacks* callbacks_ptr, |
| 92 int32 idb_cursor_id, |
| 93 WebKit::WebExceptionCode* ec); |
| 94 |
89 void RequestIDBCursorContinue( | 95 void RequestIDBCursorContinue( |
90 const IndexedDBKey& key, | 96 const IndexedDBKey& key, |
91 WebKit::WebIDBCallbacks* callbacks_ptr, | 97 WebKit::WebIDBCallbacks* callbacks_ptr, |
92 int32 idb_cursor_id, | 98 int32 idb_cursor_id, |
93 WebKit::WebExceptionCode* ec); | 99 WebKit::WebExceptionCode* ec); |
94 | 100 |
95 void RequestIDBCursorPrefetch( | 101 void RequestIDBCursorPrefetch( |
96 int n, | 102 int n, |
97 WebKit::WebIDBCallbacks* callbacks_ptr, | 103 WebKit::WebIDBCallbacks* callbacks_ptr, |
98 int32 idb_cursor_id, | 104 int32 idb_cursor_id, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 269 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
264 pending_database_callbacks_; | 270 pending_database_callbacks_; |
265 | 271 |
266 // Map from cursor id to RendererWebIDBCursorImpl. | 272 // Map from cursor id to RendererWebIDBCursorImpl. |
267 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 273 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
268 | 274 |
269 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 275 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
270 }; | 276 }; |
271 | 277 |
272 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 278 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |