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

Unified Diff: content/child/indexed_db/proxy_webidbcursor_impl.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 unit test 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
Index: content/child/indexed_db/proxy_webidbcursor_impl.h
diff --git a/content/child/indexed_db/proxy_webidbcursor_impl.h b/content/child/indexed_db/proxy_webidbcursor_impl.h
index c92b090b5b730669cfc83507399ad88fd9729680..467f6467b5f43bb07ecac24e9c3465819942799e 100644
--- a/content/child/indexed_db/proxy_webidbcursor_impl.h
+++ b/content/child/indexed_db/proxy_webidbcursor_impl.h
@@ -41,11 +41,13 @@ class CONTENT_EXPORT RendererWebIDBCursorImpl
const std::vector<IndexedDBKey>& primary_keys,
const std::vector<blink::WebData>& values);
+ void CachedAdvance(unsigned long count, blink::WebIDBCallbacks* callbacks);
void CachedContinue(blink::WebIDBCallbacks* callbacks);
void ResetPrefetchCache();
private:
FRIEND_TEST_ALL_PREFIXES(RendererWebIDBCursorImplTest, PrefetchTest);
+ FRIEND_TEST_ALL_PREFIXES(RendererWebIDBCursorImplTest, AdvancePrefetchTest);
int32 ipc_cursor_id_;

Powered by Google App Engine
This is Rietveld 408576698