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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 61 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
62 virtual void OnChannelClosing() OVERRIDE; | 62 virtual void OnChannelClosing() OVERRIDE; |
63 virtual void OnDestruct() const OVERRIDE; | 63 virtual void OnDestruct() const OVERRIDE; |
64 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 64 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
65 const IPC::Message& message) OVERRIDE; | 65 const IPC::Message& message) OVERRIDE; |
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
67 | 67 |
68 void FinishTransaction(int64 host_transaction_id, bool committed); | 68 void FinishTransaction(int64 host_transaction_id, bool committed); |
69 | 69 |
70 // A shortcut for accessing our context. | 70 // A shortcut for accessing our context. |
71 IndexedDBContextImpl* Context() { return indexed_db_context_; } | 71 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); } |
72 storage::BlobStorageContext* blob_storage_context() const { | 72 storage::BlobStorageContext* blob_storage_context() const { |
73 return blob_storage_context_->context(); | 73 return blob_storage_context_->context(); |
74 } | 74 } |
75 | 75 |
76 // IndexedDBCallbacks call these methods to add the results into the | 76 // IndexedDBCallbacks call these methods to add the results into the |
77 // applicable map. See below for more details. | 77 // applicable map. See below for more details. |
78 int32 Add(IndexedDBCursor* cursor); | 78 int32 Add(IndexedDBCursor* cursor); |
79 int32 Add(IndexedDBConnection* connection, | 79 int32 Add(IndexedDBConnection* connection, |
80 int32 ipc_thread_id, | 80 int32 ipc_thread_id, |
81 const GURL& origin_url); | 81 const GURL& origin_url); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 277 |
278 // Used to set file permissions for blob storage. | 278 // Used to set file permissions for blob storage. |
279 int ipc_process_id_; | 279 int ipc_process_id_; |
280 | 280 |
281 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 281 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
282 }; | 282 }; |
283 | 283 |
284 } // namespace content | 284 } // namespace content |
285 | 285 |
286 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 286 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |