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

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

Issue 10854081: IndexedDB: Simplify cursor data callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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.
237 void OnKey(int32 idb_object_store_id, content::IndexedDBKey* key);
238 void OnPrimaryKey(int32 idb_object_store_id,
239 content::IndexedDBKey* primary_key);
240 void OnValue(int32 idb_object_store_id,
241 content::SerializedScriptValue* script_value);
242 void OnUpdate(int32 idb_object_store_id, 236 void OnUpdate(int32 idb_object_store_id,
243 int32 thread_id, 237 int32 thread_id,
244 int32 response_id, 238 int32 response_id,
245 const content::SerializedScriptValue& value, 239 const content::SerializedScriptValue& value,
246 WebKit::WebExceptionCode* ec); 240 WebKit::WebExceptionCode* ec);
247 void OnAdvance(int32 idb_object_store_id, 241 void OnAdvance(int32 idb_object_store_id,
248 int32 thread_id, 242 int32 thread_id,
249 int32 response_id, 243 int32 response_id,
250 unsigned long count, 244 unsigned long count,
251 WebKit::WebExceptionCode* ec); 245 WebKit::WebExceptionCode* ec);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; 298 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
305 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; 299 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
306 300
307 // Used to dispatch messages to the correct view host. 301 // Used to dispatch messages to the correct view host.
308 int process_id_; 302 int process_id_;
309 303
310 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 304 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
311 }; 305 };
312 306
313 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 307 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698