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

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

Issue 104663007: IndexedDB: Optimize IDBCursor.advance() if it occurs within prefetched range (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments about virtual usage Created 7 years 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
« no previous file with comments | « no previous file | content/child/indexed_db/webidbcursor_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int64 version, 75 int64 version,
76 int64 transaction_id, 76 int64 transaction_id,
77 blink::WebIDBCallbacks* callbacks, 77 blink::WebIDBCallbacks* callbacks,
78 blink::WebIDBDatabaseCallbacks* database_callbacks, 78 blink::WebIDBDatabaseCallbacks* database_callbacks,
79 const std::string& database_identifier); 79 const std::string& database_identifier);
80 80
81 void RequestIDBFactoryDeleteDatabase(const base::string16& name, 81 void RequestIDBFactoryDeleteDatabase(const base::string16& name,
82 blink::WebIDBCallbacks* callbacks, 82 blink::WebIDBCallbacks* callbacks,
83 const std::string& database_identifier); 83 const std::string& database_identifier);
84 84
85 void RequestIDBCursorAdvance(unsigned long count, 85 // This method is virtual so it can be overridden in unit tests.
86 blink::WebIDBCallbacks* callbacks_ptr, 86 virtual void RequestIDBCursorAdvance(unsigned long count,
87 int32 ipc_cursor_id); 87 blink::WebIDBCallbacks* callbacks_ptr,
88 int32 ipc_cursor_id);
88 89
90 // This method is virtual so it can be overridden in unit tests.
89 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, 91 virtual void RequestIDBCursorContinue(const IndexedDBKey& key,
90 const IndexedDBKey& primary_key, 92 const IndexedDBKey& primary_key,
91 blink::WebIDBCallbacks* callbacks_ptr, 93 blink::WebIDBCallbacks* callbacks_ptr,
92 int32 ipc_cursor_id); 94 int32 ipc_cursor_id);
93 95
96 // This method is virtual so it can be overridden in unit tests.
94 virtual void RequestIDBCursorPrefetch(int n, 97 virtual void RequestIDBCursorPrefetch(int n,
95 blink::WebIDBCallbacks* callbacks_ptr, 98 blink::WebIDBCallbacks* callbacks_ptr,
96 int32 ipc_cursor_id); 99 int32 ipc_cursor_id);
97 100
98 void RequestIDBCursorPrefetchReset(int used_prefetches, 101 void RequestIDBCursorPrefetchReset(int used_prefetches,
99 int unused_prefetches, 102 int unused_prefetches,
100 int32 ipc_cursor_id); 103 int32 ipc_cursor_id);
101 104
102 void RequestIDBDatabaseClose(int32 ipc_database_id, 105 void RequestIDBDatabaseClose(int32 ipc_database_id,
103 int32 ipc_database_callbacks_id); 106 int32 ipc_database_callbacks_id);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 std::map<int32, WebIDBCursorImpl*> cursors_; 245 std::map<int32, WebIDBCursorImpl*> cursors_;
243 246
244 std::map<int32, WebIDBDatabaseImpl*> databases_; 247 std::map<int32, WebIDBDatabaseImpl*> databases_;
245 248
246 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 249 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
247 }; 250 };
248 251
249 } // namespace content 252 } // namespace content
250 253
251 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 254 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/indexed_db/webidbcursor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698