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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 ChromeBlobStorageContext* blob_storage_context); | 51 ChromeBlobStorageContext* blob_storage_context); |
52 IndexedDBDispatcherHost(int ipc_process_id, | 52 IndexedDBDispatcherHost(int ipc_process_id, |
53 net::URLRequestContext* request_context, | 53 net::URLRequestContext* request_context, |
54 IndexedDBContextImpl* indexed_db_context, | 54 IndexedDBContextImpl* indexed_db_context, |
55 ChromeBlobStorageContext* blob_storage_context); | 55 ChromeBlobStorageContext* blob_storage_context); |
56 | 56 |
57 static ::IndexedDBDatabaseMetadata ConvertMetadata( | 57 static ::IndexedDBDatabaseMetadata ConvertMetadata( |
58 const content::IndexedDBDatabaseMetadata& metadata); | 58 const content::IndexedDBDatabaseMetadata& metadata); |
59 | 59 |
60 // BrowserMessageFilter implementation. | 60 // BrowserMessageFilter implementation. |
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_.get(); } | 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 |
(...skipping 200 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 |