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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/child/indexed_db/webidbcursor_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/indexed_db_dispatcher.h
diff --git a/content/child/indexed_db/indexed_db_dispatcher.h b/content/child/indexed_db/indexed_db_dispatcher.h
index 5baf565ec2683d02d186248e2eb3c47aeb954e18..8df84074e25687f55ef7add17870f853f6d53bd3 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.h
+++ b/content/child/indexed_db/indexed_db_dispatcher.h
@@ -82,15 +82,18 @@ class CONTENT_EXPORT IndexedDBDispatcher
blink::WebIDBCallbacks* callbacks,
const std::string& database_identifier);
- void RequestIDBCursorAdvance(unsigned long count,
- blink::WebIDBCallbacks* callbacks_ptr,
- int32 ipc_cursor_id);
+ // This method is virtual so it can be overridden in unit tests.
+ virtual void RequestIDBCursorAdvance(unsigned long count,
+ blink::WebIDBCallbacks* callbacks_ptr,
+ int32 ipc_cursor_id);
+ // This method is virtual so it can be overridden in unit tests.
virtual void RequestIDBCursorContinue(const IndexedDBKey& key,
const IndexedDBKey& primary_key,
blink::WebIDBCallbacks* callbacks_ptr,
int32 ipc_cursor_id);
+ // This method is virtual so it can be overridden in unit tests.
virtual void RequestIDBCursorPrefetch(int n,
blink::WebIDBCallbacks* callbacks_ptr,
int32 ipc_cursor_id);
« 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