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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 AcquireIsolatedAppRequestContext( | 149 AcquireIsolatedAppRequestContext( |
150 ChromeURLRequestContext* main_context, | 150 ChromeURLRequestContext* main_context, |
151 const std::string& app_id) const OVERRIDE; | 151 const std::string& app_id) const OVERRIDE; |
152 virtual ChromeURLRequestContext* | 152 virtual ChromeURLRequestContext* |
153 AcquireIsolatedMediaRequestContext( | 153 AcquireIsolatedMediaRequestContext( |
154 ChromeURLRequestContext* app_context, | 154 ChromeURLRequestContext* app_context, |
155 const std::string& app_id) const OVERRIDE; | 155 const std::string& app_id) const OVERRIDE; |
156 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( | 156 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( |
157 IOThread::Globals* io_thread_globals) const OVERRIDE; | 157 IOThread::Globals* io_thread_globals) const OVERRIDE; |
158 | 158 |
| 159 void SetupJobFactory(net::URLRequestJobFactory* job_factory, |
| 160 net::NetworkDelegate* network_delegate, |
| 161 net::FtpAuthCache* ftp_auth_cache) const; |
| 162 |
159 void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory, | 163 void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory, |
160 net::FtpAuthCache* ftp_auth_cache) const; | 164 net::FtpAuthCache* ftp_auth_cache) const; |
161 | 165 |
162 // Clears the networking history since |time|. | 166 // Clears the networking history since |time|. |
163 void ClearNetworkingHistorySinceOnIOThread(base::Time time); | 167 void ClearNetworkingHistorySinceOnIOThread(base::Time time); |
164 | 168 |
165 // Lazy initialization params. | 169 // Lazy initialization params. |
166 mutable scoped_ptr<LazyParams> lazy_params_; | 170 mutable scoped_ptr<LazyParams> lazy_params_; |
167 | 171 |
168 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 172 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
169 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 173 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
170 | 174 |
171 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 175 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
172 | 176 |
173 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; | 177 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; |
174 | 178 |
175 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | 179 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; |
176 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_; | 180 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_; |
177 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 181 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
178 | 182 |
179 // Parameters needed for isolated apps. | 183 // Parameters needed for isolated apps. |
180 FilePath profile_path_; | 184 FilePath profile_path_; |
181 int app_cache_max_size_; | 185 int app_cache_max_size_; |
182 int app_media_cache_max_size_; | 186 int app_media_cache_max_size_; |
183 | 187 |
184 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 188 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
185 }; | 189 }; |
186 | 190 |
187 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 191 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |