| 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_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void OnChannelClosing() OVERRIDE; | 51 virtual void OnChannelClosing() OVERRIDE; |
| 52 virtual void OnDestruct() const OVERRIDE; | 52 virtual void OnDestruct() const OVERRIDE; |
| 53 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 53 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
| 54 const IPC::Message& message) OVERRIDE; | 54 const IPC::Message& message) OVERRIDE; |
| 55 virtual bool OnMessageReceived(const IPC::Message& message, | 55 virtual bool OnMessageReceived(const IPC::Message& message, |
| 56 bool* message_was_ok) OVERRIDE; | 56 bool* message_was_ok) OVERRIDE; |
| 57 | 57 |
| 58 void FinishTransaction(int64 host_transaction_id, bool committed); | 58 void FinishTransaction(int64 host_transaction_id, bool committed); |
| 59 | 59 |
| 60 // A shortcut for accessing our context. | 60 // A shortcut for accessing our context. |
| 61 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); } | 61 IndexedDBContextImpl* Context() { return indexed_db_context_; } |
| 62 | 62 |
| 63 // IndexedDBCallbacks call these methods to add the results into the | 63 // IndexedDBCallbacks call these methods to add the results into the |
| 64 // applicable map. See below for more details. | 64 // applicable map. See below for more details. |
| 65 int32 Add(IndexedDBCursor* cursor); | 65 int32 Add(IndexedDBCursor* cursor); |
| 66 int32 Add(IndexedDBConnection* connection, | 66 int32 Add(IndexedDBConnection* connection, |
| 67 int32 ipc_thread_id, | 67 int32 ipc_thread_id, |
| 68 const GURL& origin_url); | 68 const GURL& origin_url); |
| 69 | 69 |
| 70 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url); | 70 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url); |
| 71 | 71 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 // Used to dispatch messages to the correct view host. | 235 // Used to dispatch messages to the correct view host. |
| 236 int ipc_process_id_; | 236 int ipc_process_id_; |
| 237 | 237 |
| 238 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 238 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 } // namespace content | 241 } // namespace content |
| 242 | 242 |
| 243 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 243 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |