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

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

Issue 3165053: Implement IDBTransaction::objectStore (Closed)
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 class TransactionDispatcherHost { 184 class TransactionDispatcherHost {
185 public: 185 public:
186 explicit TransactionDispatcherHost(IndexedDBDispatcherHost* parent); 186 explicit TransactionDispatcherHost(IndexedDBDispatcherHost* parent);
187 ~TransactionDispatcherHost(); 187 ~TransactionDispatcherHost();
188 188
189 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); 189 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok);
190 void Send(IPC::Message* message); 190 void Send(IPC::Message* message);
191 191
192 // TODO: add the rest of the transaction methods. 192 // TODO: add the rest of the transaction methods.
193 void OnObjectStore(int32 transaction_id, const string16& name,
194 IPC::Message* reply_msg);
193 void OnDestroyed(int32 idb_transaction_id); 195 void OnDestroyed(int32 idb_transaction_id);
194 196
195 IndexedDBDispatcherHost* parent_; 197 IndexedDBDispatcherHost* parent_;
196 IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> map_; 198 IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> map_;
197 }; 199 };
198 200
199 // Only use on the IO thread. 201 // Only use on the IO thread.
200 IPC::Message::Sender* sender_; 202 IPC::Message::Sender* sender_;
201 203
202 // Data shared between renderer processes with the same profile. 204 // Data shared between renderer processes with the same profile.
(...skipping 11 matching lines...) Expand all
214 // handle. 216 // handle.
215 base::ProcessHandle process_handle_; 217 base::ProcessHandle process_handle_;
216 218
217 // Used to dispatch messages to the correct view host. 219 // Used to dispatch messages to the correct view host.
218 int process_id_; 220 int process_id_;
219 221
220 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 222 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
221 }; 223 };
222 224
223 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 225 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698