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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_callbacks.h

Issue 8662017: IndexedDB: Cursor pre-fetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indentation Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 public: 86 public:
87 IndexedDBCallbacks( 87 IndexedDBCallbacks(
88 IndexedDBDispatcherHost* dispatcher_host, int32 response_id, 88 IndexedDBDispatcherHost* dispatcher_host, int32 response_id,
89 int32 cursor_id) 89 int32 cursor_id)
90 : IndexedDBCallbacksBase(dispatcher_host, response_id), 90 : IndexedDBCallbacksBase(dispatcher_host, response_id),
91 cursor_id_(cursor_id) { } 91 cursor_id_(cursor_id) { }
92 92
93 virtual void onSuccess(WebKit::WebIDBCursor* idb_object); 93 virtual void onSuccess(WebKit::WebIDBCursor* idb_object);
94 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); 94 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value);
95 virtual void onSuccessWithContinuation(); 95 virtual void onSuccessWithContinuation();
96 virtual void onSuccessWithPrefetch(
97 const WebKit::WebVector<WebKit::WebIDBKey>& keys,
98 const WebKit::WebVector<WebKit::WebIDBKey>& primaryKeys,
99 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values);
96 100
97 private: 101 private:
98 // The id of the cursor this callback concerns, or -1 if the cursor 102 // The id of the cursor this callback concerns, or -1 if the cursor
99 // does not exist yet. 103 // does not exist yet.
100 int32 cursor_id_; 104 int32 cursor_id_;
101 105
102 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); 106 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
103 }; 107 };
104 108
105 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium 109 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) 151 IndexedDBDispatcherHost* dispatcher_host, int32 response_id)
148 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } 152 : IndexedDBCallbacksBase(dispatcher_host, response_id) { }
149 153
150 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); 154 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value);
151 155
152 private: 156 private:
153 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); 157 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
154 }; 158 };
155 159
156 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 160 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_browsertest.cc ('k') | content/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698