Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: content/child/indexed_db/indexed_db_dispatcher.h

Issue 124323002: IndexedDB: Fix cursor prefetching edge cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test-only leak found by valgrind Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_cursor.cc ('k') | content/child/indexed_db/webidbcursor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698