| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 class TransactionDispatcherHost { | 278 class TransactionDispatcherHost { |
| 279 public: | 279 public: |
| 280 explicit TransactionDispatcherHost(IndexedDBDispatcherHost* parent); | 280 explicit TransactionDispatcherHost(IndexedDBDispatcherHost* parent); |
| 281 ~TransactionDispatcherHost(); | 281 ~TransactionDispatcherHost(); |
| 282 | 282 |
| 283 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 283 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
| 284 void Send(IPC::Message* message); | 284 void Send(IPC::Message* message); |
| 285 | 285 |
| 286 // TODO: add the rest of the transaction methods. | 286 void OnCommit(int32 transaction_id); |
| 287 void OnAbort(int32 transaction_id); | 287 void OnAbort(int32 transaction_id); |
| 288 void OnMode(int32 transaction_id, int* mode); | 288 void OnMode(int32 transaction_id, int* mode); |
| 289 void OnObjectStore(int32 transaction_id, | 289 void OnObjectStore(int32 transaction_id, |
| 290 const string16& name, | 290 const string16& name, |
| 291 int32* object_store_id, | 291 int32* object_store_id, |
| 292 WebKit::WebExceptionCode* ec); | 292 WebKit::WebExceptionCode* ec); |
| 293 void OnDidCompleteTaskEvents(int transaction_id); | 293 void OnDidCompleteTaskEvents(int transaction_id); |
| 294 void OnDestroyed(int32 idb_transaction_id); | 294 void OnDestroyed(int32 idb_transaction_id); |
| 295 | 295 |
| 296 IndexedDBDispatcherHost* parent_; | 296 IndexedDBDispatcherHost* parent_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 309 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 309 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 310 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 310 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 311 | 311 |
| 312 // Used to dispatch messages to the correct view host. | 312 // Used to dispatch messages to the correct view host. |
| 313 int process_id_; | 313 int process_id_; |
| 314 | 314 |
| 315 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 315 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 318 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |