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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 class ProtocolHandlerRegistry; | 36 class ProtocolHandlerRegistry; |
37 class SigninNamesOnIOThread; | 37 class SigninNamesOnIOThread; |
38 class TransportSecurityPersister; | 38 class TransportSecurityPersister; |
39 | 39 |
40 namespace chrome_browser_net { | 40 namespace chrome_browser_net { |
41 class LoadTimeStats; | 41 class LoadTimeStats; |
42 class ResourcePrefetchPredictorObserver; | 42 class ResourcePrefetchPredictorObserver; |
43 } | 43 } |
44 | 44 |
45 namespace net { | 45 namespace net { |
| 46 class CertTrustAnchorProvider; |
| 47 class CertVerifier; |
46 class CookieStore; | 48 class CookieStore; |
47 class FraudulentCertificateReporter; | 49 class FraudulentCertificateReporter; |
48 class HttpServerProperties; | 50 class HttpServerProperties; |
49 class HttpTransactionFactory; | 51 class HttpTransactionFactory; |
50 class ServerBoundCertService; | 52 class ServerBoundCertService; |
51 class ProxyConfigService; | 53 class ProxyConfigService; |
52 class ProxyService; | 54 class ProxyService; |
53 class SSLConfigService; | 55 class SSLConfigService; |
54 class TransportSecurityState; | 56 class TransportSecurityState; |
55 class URLRequestJobFactoryImpl; | 57 class URLRequestJobFactoryImpl; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 263 |
262 // We need to initialize the ProxyConfigService from the UI thread | 264 // We need to initialize the ProxyConfigService from the UI thread |
263 // because on linux it relies on initializing things through gconf, | 265 // because on linux it relies on initializing things through gconf, |
264 // and needs to be on the main thread. | 266 // and needs to be on the main thread. |
265 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 267 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
266 | 268 |
267 #if defined(ENABLE_MANAGED_USERS) | 269 #if defined(ENABLE_MANAGED_USERS) |
268 scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter; | 270 scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter; |
269 #endif | 271 #endif |
270 | 272 |
| 273 #if defined(OS_CHROMEOS) |
| 274 // This is used to build the CertVerifier on the IO thread, and is a shared |
| 275 // provider used by all profiles for now. |
| 276 net::CertTrustAnchorProvider* trust_anchor_provider; |
| 277 #endif |
| 278 |
271 // The profile this struct was populated from. It's passed as a void* to | 279 // The profile this struct was populated from. It's passed as a void* to |
272 // ensure it's not accidently used on the IO thread. Before using it on the | 280 // ensure it's not accidently used on the IO thread. Before using it on the |
273 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. | 281 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. |
274 void* profile; | 282 void* profile; |
275 }; | 283 }; |
276 | 284 |
277 explicit ProfileIOData(bool is_incognito); | 285 explicit ProfileIOData(bool is_incognito); |
278 | 286 |
279 static std::string GetSSLSessionCacheShard(); | 287 static std::string GetSSLSessionCacheShard(); |
280 | 288 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // Pointed to by URLRequestContext. | 482 // Pointed to by URLRequestContext. |
475 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; | 483 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; |
476 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; | 484 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; |
477 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; | 485 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; |
478 mutable scoped_ptr<net::FraudulentCertificateReporter> | 486 mutable scoped_ptr<net::FraudulentCertificateReporter> |
479 fraudulent_certificate_reporter_; | 487 fraudulent_certificate_reporter_; |
480 mutable scoped_ptr<net::ProxyService> proxy_service_; | 488 mutable scoped_ptr<net::ProxyService> proxy_service_; |
481 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 489 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
482 mutable scoped_ptr<net::HttpServerProperties> | 490 mutable scoped_ptr<net::HttpServerProperties> |
483 http_server_properties_; | 491 http_server_properties_; |
| 492 #if defined(OS_CHROMEOS) |
| 493 mutable scoped_ptr<net::CertVerifier> cert_verifier_; |
| 494 #endif |
484 | 495 |
485 #if defined(ENABLE_NOTIFICATIONS) | 496 #if defined(ENABLE_NOTIFICATIONS) |
486 mutable DesktopNotificationService* notification_service_; | 497 mutable DesktopNotificationService* notification_service_; |
487 #endif | 498 #endif |
488 | 499 |
489 mutable scoped_ptr<TransportSecurityPersister> | 500 mutable scoped_ptr<TransportSecurityPersister> |
490 transport_security_persister_; | 501 transport_security_persister_; |
491 | 502 |
492 // These are only valid in between LazyInitialize() and their accessor being | 503 // These are only valid in between LazyInitialize() and their accessor being |
493 // called. | 504 // called. |
(...skipping 21 matching lines...) Expand all Loading... |
515 | 526 |
516 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 527 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
517 bool initialized_on_UI_thread_; | 528 bool initialized_on_UI_thread_; |
518 | 529 |
519 bool is_incognito_; | 530 bool is_incognito_; |
520 | 531 |
521 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 532 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
522 }; | 533 }; |
523 | 534 |
524 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 535 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |