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

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: One more cast 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 virtual void RequestIDBCursorAdvance(unsigned long count,
alecflett 2013/12/19 00:41:39 I have been thrown off by this before, being virtu
jsbell 2013/12/19 18:31:19 Done.
86 blink::WebIDBCallbacks* callbacks_ptr, 86 blink::WebIDBCallbacks* callbacks_ptr,
87 int32 ipc_cursor_id); 87 int32 ipc_cursor_id);
88 88
89 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, 89 virtual void RequestIDBCursorContinue(const IndexedDBKey& key,
90 const IndexedDBKey& primary_key, 90 const IndexedDBKey& primary_key,
91 blink::WebIDBCallbacks* callbacks_ptr, 91 blink::WebIDBCallbacks* callbacks_ptr,
92 int32 ipc_cursor_id); 92 int32 ipc_cursor_id);
93 93
94 virtual void RequestIDBCursorPrefetch(int n, 94 virtual void RequestIDBCursorPrefetch(int n,
95 blink::WebIDBCallbacks* callbacks_ptr, 95 blink::WebIDBCallbacks* callbacks_ptr,
96 int32 ipc_cursor_id); 96 int32 ipc_cursor_id);
97 97
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 std::map<int32, WebIDBCursorImpl*> cursors_; 242 std::map<int32, WebIDBCursorImpl*> cursors_;
243 243
244 std::map<int32, WebIDBDatabaseImpl*> databases_; 244 std::map<int32, WebIDBDatabaseImpl*> databases_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 246 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
247 }; 247 };
248 248
249 } // namespace content 249 } // namespace content
250 250
251 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 251 #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