| 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 // This method is virtual so it can be overridden in unit tests. | 101 void RequestIDBCursorPrefetchReset(int used_prefetches, |
| 102 virtual void RequestIDBCursorPrefetchReset(int used_prefetches, | 102 int unused_prefetches, |
| 103 int unused_prefetches, | 103 int32 ipc_cursor_id); |
| 104 int32 ipc_cursor_id); | |
| 105 | 104 |
| 106 void RequestIDBDatabaseClose(int32 ipc_database_id, | 105 void RequestIDBDatabaseClose(int32 ipc_database_id, |
| 107 int32 ipc_database_callbacks_id); | 106 int32 ipc_database_callbacks_id); |
| 108 | 107 |
| 109 void RequestIDBDatabaseCreateTransaction( | 108 void RequestIDBDatabaseCreateTransaction( |
| 110 int32 ipc_database_id, | 109 int32 ipc_database_id, |
| 111 int64 transaction_id, | 110 int64 transaction_id, |
| 112 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, | 111 blink::WebIDBDatabaseCallbacks* database_callbacks_ptr, |
| 113 blink::WebVector<long long> object_store_ids, | 112 blink::WebVector<long long> object_store_ids, |
| 114 unsigned short mode); | 113 unsigned short mode); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 std::map<int32, WebIDBCursorImpl*> cursors_; | 245 std::map<int32, WebIDBCursorImpl*> cursors_; |
| 247 | 246 |
| 248 std::map<int32, WebIDBDatabaseImpl*> databases_; | 247 std::map<int32, WebIDBDatabaseImpl*> databases_; |
| 249 | 248 |
| 250 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 249 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 251 }; | 250 }; |
| 252 | 251 |
| 253 } // namespace content | 252 } // namespace content |
| 254 | 253 |
| 255 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 254 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |