Chromium Code Reviews| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 class ChromeNetworkDelegate; | 35 class ChromeNetworkDelegate; |
| 36 class ChromeURLRequestContextGetter; | 36 class ChromeURLRequestContextGetter; |
| 37 class CookieSettings; | 37 class CookieSettings; |
| 38 class DevToolsNetworkController; | 38 class DevToolsNetworkController; |
| 39 class HostContentSettingsMap; | 39 class HostContentSettingsMap; |
| 40 class MediaDeviceIDSalt; | 40 class MediaDeviceIDSalt; |
| 41 class ProtocolHandlerRegistry; | 41 class ProtocolHandlerRegistry; |
| 42 class SigninNamesOnIOThread; | 42 class SigninNamesOnIOThread; |
| 43 class SupervisedUserURLFilter; | 43 class SupervisedUserURLFilter; |
| 44 | 44 |
| 45 class CertDatabaseServiceIOPart; | |
| 46 | |
| 45 namespace extensions { | 47 namespace extensions { |
| 46 class InfoMap; | 48 class InfoMap; |
| 47 } | 49 } |
| 48 | 50 |
| 49 namespace net { | 51 namespace net { |
| 50 class CertVerifier; | 52 class CertVerifier; |
| 51 class ChannelIDService; | 53 class ChannelIDService; |
| 52 class CookieStore; | 54 class CookieStore; |
| 53 class FraudulentCertificateReporter; | 55 class FraudulentCertificateReporter; |
| 54 class FtpTransactionFactory; | 56 class FtpTransactionFactory; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 209 | 211 |
| 210 DevToolsNetworkController* network_controller() const { | 212 DevToolsNetworkController* network_controller() const { |
| 211 return network_controller_.get(); | 213 return network_controller_.get(); |
| 212 } | 214 } |
| 213 | 215 |
| 214 net::TransportSecurityState* transport_security_state() const { | 216 net::TransportSecurityState* transport_security_state() const { |
| 215 return transport_security_state_.get(); | 217 return transport_security_state_.get(); |
| 216 } | 218 } |
| 217 | 219 |
| 218 #if defined(OS_CHROMEOS) | 220 #if defined(OS_CHROMEOS) |
| 219 std::string username_hash() const { | 221 std::string username_hash() const { |
|
mattm
2014/09/05 07:35:29
I think this can be removed too
pneubeck (no reviews)
2014/09/05 08:04:56
Yes, I've removed it now from ProfileIOData.
But s
| |
| 220 return username_hash_; | 222 return username_hash_; |
| 221 } | 223 } |
| 222 | |
| 223 bool use_system_key_slot() const { return use_system_key_slot_; } | |
| 224 #endif | 224 #endif |
| 225 | 225 |
| 226 Profile::ProfileType profile_type() const { | 226 Profile::ProfileType profile_type() const { |
| 227 return profile_type_; | 227 return profile_type_; |
| 228 } | 228 } |
| 229 | 229 |
| 230 bool IsOffTheRecord() const; | 230 bool IsOffTheRecord() const; |
| 231 | 231 |
| 232 IntegerPrefMember* incognito_availibility() const { | 232 IntegerPrefMember* incognito_availibility() const { |
| 233 return &incognito_availibility_pref_; | 233 return &incognito_availibility_pref_; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 // because on linux it relies on initializing things through gconf, | 327 // because on linux it relies on initializing things through gconf, |
| 328 // and needs to be on the main thread. | 328 // and needs to be on the main thread. |
| 329 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 329 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
| 330 | 330 |
| 331 #if defined(ENABLE_MANAGED_USERS) | 331 #if defined(ENABLE_MANAGED_USERS) |
| 332 scoped_refptr<const SupervisedUserURLFilter> supervised_user_url_filter; | 332 scoped_refptr<const SupervisedUserURLFilter> supervised_user_url_filter; |
| 333 #endif | 333 #endif |
| 334 | 334 |
| 335 #if defined(OS_CHROMEOS) | 335 #if defined(OS_CHROMEOS) |
| 336 std::string username_hash; | 336 std::string username_hash; |
| 337 bool use_system_key_slot; | |
| 338 #endif | 337 #endif |
| 339 | 338 |
| 340 // The profile this struct was populated from. It's passed as a void* to | 339 // The profile this struct was populated from. It's passed as a void* to |
| 341 // ensure it's not accidently used on the IO thread. Before using it on the | 340 // ensure it's not accidently used on the IO thread. Before using it on the |
| 342 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. | 341 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. |
| 343 void* profile; | 342 void* profile; |
| 344 | 343 |
| 345 prerender::PrerenderTracker* prerender_tracker; | 344 prerender::PrerenderTracker* prerender_tracker; |
| 346 }; | 345 }; |
| 347 | 346 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 586 mutable scoped_ptr<net::ProxyService> proxy_service_; | 585 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 587 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 586 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 588 mutable scoped_ptr<net::HttpServerProperties> | 587 mutable scoped_ptr<net::HttpServerProperties> |
| 589 http_server_properties_; | 588 http_server_properties_; |
| 590 #if defined(OS_CHROMEOS) | 589 #if defined(OS_CHROMEOS) |
| 591 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that | 590 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that |
| 592 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. | 591 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. |
| 593 mutable policy::PolicyCertVerifier* policy_cert_verifier_; | 592 mutable policy::PolicyCertVerifier* policy_cert_verifier_; |
| 594 mutable scoped_ptr<net::CertVerifier> cert_verifier_; | 593 mutable scoped_ptr<net::CertVerifier> cert_verifier_; |
| 595 mutable std::string username_hash_; | 594 mutable std::string username_hash_; |
| 596 mutable bool use_system_key_slot_; | 595 #endif |
| 596 | |
| 597 #if defined(USE_NSS) | |
| 598 mutable base::WeakPtr<CertDatabaseServiceIOPart> cert_db_io_; | |
| 597 #endif | 599 #endif |
| 598 | 600 |
| 599 mutable scoped_ptr<net::TransportSecurityPersister> | 601 mutable scoped_ptr<net::TransportSecurityPersister> |
| 600 transport_security_persister_; | 602 transport_security_persister_; |
| 601 | 603 |
| 602 // These are only valid in between LazyInitialize() and their accessor being | 604 // These are only valid in between LazyInitialize() and their accessor being |
| 603 // called. | 605 // called. |
| 604 mutable scoped_ptr<net::URLRequestContext> main_request_context_; | 606 mutable scoped_ptr<net::URLRequestContext> main_request_context_; |
| 605 mutable scoped_ptr<net::URLRequestContext> extensions_request_context_; | 607 mutable scoped_ptr<net::URLRequestContext> extensions_request_context_; |
| 606 // One URLRequestContext per isolated app for main and media requests. | 608 // One URLRequestContext per isolated app for main and media requests. |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 625 | 627 |
| 626 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 628 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 627 bool initialized_on_UI_thread_; | 629 bool initialized_on_UI_thread_; |
| 628 | 630 |
| 629 const Profile::ProfileType profile_type_; | 631 const Profile::ProfileType profile_type_; |
| 630 | 632 |
| 631 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 633 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 632 }; | 634 }; |
| 633 | 635 |
| 634 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 636 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |