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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 void* profile; | 169 void* profile; |
170 }; | 170 }; |
171 | 171 |
172 explicit ProfileIOData(bool is_incognito); | 172 explicit ProfileIOData(bool is_incognito); |
173 | 173 |
174 static std::string GetSSLSessionCacheShard(); | 174 static std::string GetSSLSessionCacheShard(); |
175 | 175 |
176 void InitializeOnUIThread(Profile* profile); | 176 void InitializeOnUIThread(Profile* profile); |
177 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 177 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
178 | 178 |
179 void SetUpJobFactoryDefaults(net::URLRequestJobFactory* job_factory) const; | |
180 | |
179 // Lazy initializes the ProfileIOData object the first time a request context | 181 // Lazy initializes the ProfileIOData object the first time a request context |
180 // is requested. The lazy logic is implemented here. The actual initialization | 182 // is requested. The lazy logic is implemented here. The actual initialization |
181 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 183 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
182 // functions have been provided to assist in common operations. | 184 // functions have been provided to assist in common operations. |
183 void LazyInitialize() const; | 185 void LazyInitialize() const; |
184 | 186 |
185 // Called when the profile is destroyed. | 187 // Called when the profile is destroyed. |
186 void ShutdownOnUIThread(); | 188 void ShutdownOnUIThread(); |
187 | 189 |
188 BooleanPrefMember* enable_referrers() const { | 190 BooleanPrefMember* enable_referrers() const { |
(...skipping 16 matching lines...) Expand all Loading... | |
205 } | 207 } |
206 | 208 |
207 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { | 209 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { |
208 return fraudulent_certificate_reporter_.get(); | 210 return fraudulent_certificate_reporter_.get(); |
209 } | 211 } |
210 | 212 |
211 net::ProxyService* proxy_service() const { | 213 net::ProxyService* proxy_service() const { |
212 return proxy_service_.get(); | 214 return proxy_service_.get(); |
213 } | 215 } |
214 | 216 |
215 net::URLRequestJobFactory* job_factory() const { | 217 net::URLRequestJobFactory* job_factory() const { |
erikwright (departed)
2012/06/21 20:21:30
Remove
shalev
2012/06/21 20:38:54
Done.
| |
216 return job_factory_.get(); | 218 return job_factory_.get(); |
217 } | 219 } |
218 | 220 |
219 void set_http_server_properties_manager( | 221 void set_http_server_properties_manager( |
220 chrome_browser_net::HttpServerPropertiesManager* manager) const; | 222 chrome_browser_net::HttpServerPropertiesManager* manager) const; |
221 | 223 |
222 ChromeURLRequestContext* main_request_context() const { | 224 ChromeURLRequestContext* main_request_context() const { |
223 return main_request_context_.get(); | 225 return main_request_context_.get(); |
224 } | 226 } |
225 | 227 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 | 317 |
316 // Pointed to by URLRequestContext. | 318 // Pointed to by URLRequestContext. |
317 mutable scoped_ptr<ChromeURLDataManagerBackend> | 319 mutable scoped_ptr<ChromeURLDataManagerBackend> |
318 chrome_url_data_manager_backend_; | 320 chrome_url_data_manager_backend_; |
319 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; | 321 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; |
320 mutable scoped_ptr<net::NetworkDelegate> network_delegate_; | 322 mutable scoped_ptr<net::NetworkDelegate> network_delegate_; |
321 mutable scoped_ptr<net::FraudulentCertificateReporter> | 323 mutable scoped_ptr<net::FraudulentCertificateReporter> |
322 fraudulent_certificate_reporter_; | 324 fraudulent_certificate_reporter_; |
323 mutable scoped_ptr<net::ProxyService> proxy_service_; | 325 mutable scoped_ptr<net::ProxyService> proxy_service_; |
324 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 326 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
325 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; | 327 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; |
erikwright (departed)
2012/06/21 20:21:30
Remove.
shalev
2012/06/21 20:38:54
Done.
| |
326 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> | 328 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> |
327 http_server_properties_manager_; | 329 http_server_properties_manager_; |
328 | 330 |
329 #if defined(ENABLE_NOTIFICATIONS) | 331 #if defined(ENABLE_NOTIFICATIONS) |
330 mutable DesktopNotificationService* notification_service_; | 332 mutable DesktopNotificationService* notification_service_; |
331 #endif | 333 #endif |
332 | 334 |
333 mutable scoped_ptr<TransportSecurityPersister> | 335 mutable scoped_ptr<TransportSecurityPersister> |
334 transport_security_persister_; | 336 transport_security_persister_; |
335 | 337 |
(...skipping 11 matching lines...) Expand all Loading... | |
347 | 349 |
348 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 350 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
349 bool initialized_on_UI_thread_; | 351 bool initialized_on_UI_thread_; |
350 | 352 |
351 bool is_incognito_; | 353 bool is_incognito_; |
352 | 354 |
353 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 355 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
354 }; | 356 }; |
355 | 357 |
356 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 358 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |