OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, | 91 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, |
92 const IndexedDBKey& primary_key, | 92 const IndexedDBKey& primary_key, |
93 blink::WebIDBCallbacks* callbacks_ptr, | 93 blink::WebIDBCallbacks* callbacks_ptr, |
94 int32 ipc_cursor_id); | 94 int32 ipc_cursor_id); |
95 | 95 |
96 // This method is virtual so it can be overridden in unit tests. | 96 // This method is virtual so it can be overridden in unit tests. |
97 virtual void RequestIDBCursorPrefetch(int n, | 97 virtual void RequestIDBCursorPrefetch(int n, |
98 blink::WebIDBCallbacks* callbacks_ptr, | 98 blink::WebIDBCallbacks* callbacks_ptr, |
99 int32 ipc_cursor_id); | 99 int32 ipc_cursor_id); |
100 | 100 |
101 void RequestIDBCursorPrefetchReset(int used_prefetches, | 101 // This method is virtual so it can be overridden in unit tests. |
102 int unused_prefetches, | 102 virtual void RequestIDBCursorPrefetchReset(int used_prefetches, |
103 int32 ipc_cursor_id); | 103 int unused_prefetches, |
| 104 int32 ipc_cursor_id); |
104 | 105 |
105 void RequestIDBDatabaseClose(int32 ipc_database_id, | 106 void RequestIDBDatabaseClose(int32 ipc_database_id, |
106 int32 ipc_database_callbacks_id); | 107 int32 ipc_database_callbacks_id); |
107 | 108 |
108 void RequestIDBDatabaseCreateTransaction( | 109 void RequestIDBDatabaseCreateTransaction( |
109 int32 ipc_database_id, | 110 int32 ipc_database_id, |
110 int64 transaction_id, | 111 int64 transaction_id, |
111 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, | 112 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, |
112 blink::WebVector<long long> object_store_ids, | 113 blink::WebVector<long long> object_store_ids, |
113 unsigned short mode); | 114 unsigned short mode); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 std::map<int32, WebIDBCursorImpl*> cursors_; | 246 std::map<int32, WebIDBCursorImpl*> cursors_; |
246 | 247 |
247 std::map<int32, WebIDBDatabaseImpl*> databases_; | 248 std::map<int32, WebIDBDatabaseImpl*> databases_; |
248 | 249 |
249 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 250 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
250 }; | 251 }; |
251 | 252 |
252 } // namespace content | 253 } // namespace content |
253 | 254 |
254 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 255 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |