| 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 CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 typedef base::hash_map<std::string, net::HttpTransactionFactory* > | 132 typedef base::hash_map<std::string, net::HttpTransactionFactory* > |
| 133 HttpTransactionFactoryMap; | 133 HttpTransactionFactoryMap; |
| 134 | 134 |
| 135 ProfileImplIOData(); | 135 ProfileImplIOData(); |
| 136 virtual ~ProfileImplIOData(); | 136 virtual ~ProfileImplIOData(); |
| 137 | 137 |
| 138 virtual void LazyInitializeInternal( | 138 virtual void LazyInitializeInternal( |
| 139 ProfileParams* profile_params) const OVERRIDE; | 139 ProfileParams* profile_params) const OVERRIDE; |
| 140 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 140 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 141 ChromeURLRequestContext* main_context, | 141 ChromeURLRequestContext* main_context, |
| 142 const std::string& app_id) const OVERRIDE; | 142 const std::string& app_id, |
| 143 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 144 protocol_handler_interceptor) const OVERRIDE; |
| 143 virtual ChromeURLRequestContext* InitializeMediaRequestContext( | 145 virtual ChromeURLRequestContext* InitializeMediaRequestContext( |
| 144 ChromeURLRequestContext* original_context, | 146 ChromeURLRequestContext* original_context, |
| 145 const std::string& app_id) const OVERRIDE; | 147 const std::string& app_id) const OVERRIDE; |
| 146 virtual ChromeURLRequestContext* | 148 virtual ChromeURLRequestContext* |
| 147 AcquireMediaRequestContext() const OVERRIDE; | 149 AcquireMediaRequestContext() const OVERRIDE; |
| 148 virtual ChromeURLRequestContext* | 150 virtual ChromeURLRequestContext* |
| 149 AcquireIsolatedAppRequestContext( | 151 AcquireIsolatedAppRequestContext( |
| 150 ChromeURLRequestContext* main_context, | 152 ChromeURLRequestContext* main_context, |
| 151 const std::string& app_id) const OVERRIDE; | 153 const std::string& app_id, |
| 154 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 155 protocol_handler_interceptor) const OVERRIDE; |
| 152 virtual ChromeURLRequestContext* | 156 virtual ChromeURLRequestContext* |
| 153 AcquireIsolatedMediaRequestContext( | 157 AcquireIsolatedMediaRequestContext( |
| 154 ChromeURLRequestContext* app_context, | 158 ChromeURLRequestContext* app_context, |
| 155 const std::string& app_id) const OVERRIDE; | 159 const std::string& app_id) const OVERRIDE; |
| 156 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( | 160 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( |
| 157 IOThread::Globals* io_thread_globals) const OVERRIDE; | 161 IOThread::Globals* io_thread_globals) const OVERRIDE; |
| 158 | 162 |
| 159 void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory, | 163 void SetUpJobFactory(net::URLRequestJobFactory* job_factory, |
| 160 net::FtpAuthCache* ftp_auth_cache) const; | 164 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 165 protocol_handler_interceptor, |
| 166 net::NetworkDelegate* network_delegate, |
| 167 net::FtpTransactionFactory* ftp_transaction_factory, |
| 168 net::FtpAuthCache* ftp_auth_cache) const; |
| 161 | 169 |
| 162 // Clears the networking history since |time|. | 170 // Clears the networking history since |time|. |
| 163 void ClearNetworkingHistorySinceOnIOThread(base::Time time); | 171 void ClearNetworkingHistorySinceOnIOThread(base::Time time); |
| 164 | 172 |
| 165 // Lazy initialization params. | 173 // Lazy initialization params. |
| 166 mutable scoped_ptr<LazyParams> lazy_params_; | 174 mutable scoped_ptr<LazyParams> lazy_params_; |
| 167 | 175 |
| 168 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 176 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
| 169 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 177 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
| 170 | 178 |
| 171 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 179 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
| 172 | 180 |
| 173 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; | 181 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; |
| 174 | 182 |
| 175 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | 183 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; |
| 176 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_; | 184 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_; |
| 177 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 185 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
| 178 | 186 |
| 179 // Parameters needed for isolated apps. | 187 // Parameters needed for isolated apps. |
| 180 FilePath profile_path_; | 188 FilePath profile_path_; |
| 181 int app_cache_max_size_; | 189 int app_cache_max_size_; |
| 182 int app_media_cache_max_size_; | 190 int app_media_cache_max_size_; |
| 183 | 191 |
| 184 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 192 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 185 }; | 193 }; |
| 186 | 194 |
| 187 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 195 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |