| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class ChromeExpectCTReporter; | 44 class ChromeExpectCTReporter; |
| 45 class HostContentSettingsMap; | 45 class HostContentSettingsMap; |
| 46 class NetHttpSessionParamsObserver; | 46 class NetHttpSessionParamsObserver; |
| 47 class ProtocolHandlerRegistry; | 47 class ProtocolHandlerRegistry; |
| 48 | 48 |
| 49 namespace chromeos { | 49 namespace chromeos { |
| 50 class CertificateProvider; | 50 class CertificateProvider; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace chrome_browser_net { | 53 namespace chrome_browser_net { |
| 54 class ResourcePrefetchPredictorObserver; | 54 class LoadingPredictorObserver; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace certificate_transparency { | 57 namespace certificate_transparency { |
| 58 class CTPolicyManager; | 58 class CTPolicyManager; |
| 59 class TreeStateTracker; | 59 class TreeStateTracker; |
| 60 } | 60 } |
| 61 | 61 |
| 62 namespace content_settings { | 62 namespace content_settings { |
| 63 class CookieSettings; | 63 class CookieSettings; |
| 64 } | 64 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 Profile::ProfileType profile_type() const { | 197 Profile::ProfileType profile_type() const { |
| 198 return profile_type_; | 198 return profile_type_; |
| 199 } | 199 } |
| 200 | 200 |
| 201 bool IsOffTheRecord() const; | 201 bool IsOffTheRecord() const; |
| 202 | 202 |
| 203 IntegerPrefMember* incognito_availibility() const { | 203 IntegerPrefMember* incognito_availibility() const { |
| 204 return &incognito_availibility_pref_; | 204 return &incognito_availibility_pref_; |
| 205 } | 205 } |
| 206 | 206 |
| 207 chrome_browser_net::ResourcePrefetchPredictorObserver* | 207 chrome_browser_net::LoadingPredictorObserver* loading_predictor_observer() |
| 208 resource_prefetch_predictor_observer() const { | 208 const { |
| 209 return resource_prefetch_predictor_observer_.get(); | 209 return loading_predictor_observer_.get(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 policy::PolicyHeaderIOHelper* policy_header_helper() const { | 212 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
| 213 return policy_header_helper_.get(); | 213 return policy_header_helper_.get(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 // Initialize the member needed to track the metrics enabled state. This is | 216 // Initialize the member needed to track the metrics enabled state. This is |
| 217 // only to be called on the UI thread. | 217 // only to be called on the UI thread. |
| 218 void InitializeMetricsEnabledStateOnUIThread(); | 218 void InitializeMetricsEnabledStateOnUIThread(); |
| 219 | 219 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 base::FilePath path; | 307 base::FilePath path; |
| 308 IOThread* io_thread; | 308 IOThread* io_thread; |
| 309 scoped_refptr<content_settings::CookieSettings> cookie_settings; | 309 scoped_refptr<content_settings::CookieSettings> cookie_settings; |
| 310 scoped_refptr<HostContentSettingsMap> host_content_settings_map; | 310 scoped_refptr<HostContentSettingsMap> host_content_settings_map; |
| 311 scoped_refptr<net::SSLConfigService> ssl_config_service; | 311 scoped_refptr<net::SSLConfigService> ssl_config_service; |
| 312 scoped_refptr<net::CookieMonsterDelegate> cookie_monster_delegate; | 312 scoped_refptr<net::CookieMonsterDelegate> cookie_monster_delegate; |
| 313 #if BUILDFLAG(ENABLE_EXTENSIONS) | 313 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 314 scoped_refptr<extensions::InfoMap> extension_info_map; | 314 scoped_refptr<extensions::InfoMap> extension_info_map; |
| 315 #endif | 315 #endif |
| 316 std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | 316 std::unique_ptr<chrome_browser_net::LoadingPredictorObserver> |
| 317 resource_prefetch_predictor_observer_; | 317 loading_predictor_observer_; |
| 318 | 318 |
| 319 // This pointer exists only as a means of conveying a url job factory | 319 // This pointer exists only as a means of conveying a url job factory |
| 320 // pointer from the protocol handler registry on the UI thread to the | 320 // pointer from the protocol handler registry on the UI thread to the |
| 321 // the URLRequestContext on the IO thread. The consumer MUST take | 321 // the URLRequestContext on the IO thread. The consumer MUST take |
| 322 // ownership of the object by calling release() on this pointer. | 322 // ownership of the object by calling release() on this pointer. |
| 323 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 323 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 324 protocol_handler_interceptor; | 324 protocol_handler_interceptor; |
| 325 | 325 |
| 326 // Holds the URLRequestInterceptor pointer that is created on the UI thread | 326 // Holds the URLRequestInterceptor pointer that is created on the UI thread |
| 327 // and then passed to the list of request_interceptors on the IO thread. | 327 // and then passed to the list of request_interceptors on the IO thread. |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 // One URLRequestContext per isolated app for main and media requests. | 593 // One URLRequestContext per isolated app for main and media requests. |
| 594 mutable URLRequestContextMap app_request_context_map_; | 594 mutable URLRequestContextMap app_request_context_map_; |
| 595 mutable URLRequestContextMap isolated_media_request_context_map_; | 595 mutable URLRequestContextMap isolated_media_request_context_map_; |
| 596 | 596 |
| 597 mutable std::unique_ptr<ResourceContext> resource_context_; | 597 mutable std::unique_ptr<ResourceContext> resource_context_; |
| 598 | 598 |
| 599 mutable scoped_refptr<content_settings::CookieSettings> cookie_settings_; | 599 mutable scoped_refptr<content_settings::CookieSettings> cookie_settings_; |
| 600 | 600 |
| 601 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 601 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 602 | 602 |
| 603 mutable std::unique_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | 603 mutable std::unique_ptr<chrome_browser_net::LoadingPredictorObserver> |
| 604 resource_prefetch_predictor_observer_; | 604 loading_predictor_observer_; |
| 605 | 605 |
| 606 mutable std::unique_ptr<ChromeHttpUserAgentSettings> | 606 mutable std::unique_ptr<ChromeHttpUserAgentSettings> |
| 607 chrome_http_user_agent_settings_; | 607 chrome_http_user_agent_settings_; |
| 608 | 608 |
| 609 #if BUILDFLAG(ENABLE_EXTENSIONS) | 609 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 610 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. | 610 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. |
| 611 mutable std::unique_ptr<extensions::ExtensionThrottleManager> | 611 mutable std::unique_ptr<extensions::ExtensionThrottleManager> |
| 612 extension_throttle_manager_; | 612 extension_throttle_manager_; |
| 613 #endif | 613 #endif |
| 614 | 614 |
| 615 mutable DevToolsNetworkControllerHandle network_controller_handle_; | 615 mutable DevToolsNetworkControllerHandle network_controller_handle_; |
| 616 | 616 |
| 617 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 617 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
| 618 ct_tree_tracker_; | 618 ct_tree_tracker_; |
| 619 mutable base::Closure ct_tree_tracker_unregistration_; | 619 mutable base::Closure ct_tree_tracker_unregistration_; |
| 620 | 620 |
| 621 const Profile::ProfileType profile_type_; | 621 const Profile::ProfileType profile_type_; |
| 622 | 622 |
| 623 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 623 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 626 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |