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

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

Issue 10830028: IndexedDB: Send cursor data along with success messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment tweaks and rebase Created 8 years, 4 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 }; 226 };
227 227
228 class CursorDispatcherHost { 228 class CursorDispatcherHost {
229 public: 229 public:
230 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); 230 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent);
231 ~CursorDispatcherHost(); 231 ~CursorDispatcherHost();
232 232
233 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); 233 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok);
234 void Send(IPC::Message* message); 234 void Send(IPC::Message* message);
235 235
236 // TODO(jsbell): Remove the next three methods after WK92278 rolls.
236 void OnKey(int32 idb_object_store_id, content::IndexedDBKey* key); 237 void OnKey(int32 idb_object_store_id, content::IndexedDBKey* key);
237 void OnPrimaryKey(int32 idb_object_store_id, 238 void OnPrimaryKey(int32 idb_object_store_id,
238 content::IndexedDBKey* primary_key); 239 content::IndexedDBKey* primary_key);
239 void OnValue(int32 idb_object_store_id, 240 void OnValue(int32 idb_object_store_id,
240 content::SerializedScriptValue* script_value); 241 content::SerializedScriptValue* script_value);
241 void OnUpdate(int32 idb_object_store_id, 242 void OnUpdate(int32 idb_object_store_id,
242 int32 thread_id, 243 int32 thread_id,
243 int32 response_id, 244 int32 response_id,
244 const content::SerializedScriptValue& value, 245 const content::SerializedScriptValue& value,
245 WebKit::WebExceptionCode* ec); 246 WebKit::WebExceptionCode* ec);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; 304 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
304 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; 305 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
305 306
306 // Used to dispatch messages to the correct view host. 307 // Used to dispatch messages to the correct view host.
307 int process_id_; 308 int process_id_;
308 309
309 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 310 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
310 }; 311 };
311 312
312 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 313 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698