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 13 matching lines...) Expand all Loading... |
24 class DesktopNotificationService; | 24 class DesktopNotificationService; |
25 class ExtensionInfoMap; | 25 class ExtensionInfoMap; |
26 class HostContentSettingsMap; | 26 class HostContentSettingsMap; |
27 class IOThread; | 27 class IOThread; |
28 class Profile; | 28 class Profile; |
29 class ProtocolHandlerRegistry; | 29 class ProtocolHandlerRegistry; |
30 class TransportSecurityPersister; | 30 class TransportSecurityPersister; |
31 | 31 |
32 namespace chrome_browser_net { | 32 namespace chrome_browser_net { |
33 class HttpServerPropertiesManager; | 33 class HttpServerPropertiesManager; |
| 34 class ResourcePrefetchPredictorObserver; |
34 } | 35 } |
35 | 36 |
36 namespace net { | 37 namespace net { |
37 class CookieStore; | 38 class CookieStore; |
38 class FraudulentCertificateReporter; | 39 class FraudulentCertificateReporter; |
39 class HttpTransactionFactory; | 40 class HttpTransactionFactory; |
40 class ServerBoundCertService; | 41 class ServerBoundCertService; |
41 class ProxyConfigService; | 42 class ProxyConfigService; |
42 class ProxyService; | 43 class ProxyService; |
43 class SSLConfigService; | 44 class SSLConfigService; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 return transport_security_state_.get(); | 108 return transport_security_state_.get(); |
108 } | 109 } |
109 | 110 |
110 chrome_browser_net::HttpServerPropertiesManager* | 111 chrome_browser_net::HttpServerPropertiesManager* |
111 http_server_properties_manager() const; | 112 http_server_properties_manager() const; |
112 | 113 |
113 bool is_incognito() const { | 114 bool is_incognito() const { |
114 return is_incognito_; | 115 return is_incognito_; |
115 } | 116 } |
116 | 117 |
| 118 chrome_browser_net::ResourcePrefetchPredictorObserver* |
| 119 resource_prefetch_predictor_observer() const { |
| 120 return resource_prefetch_predictor_observer_.get(); |
| 121 } |
| 122 |
117 // Initialize the member needed to track the metrics enabled state. This is | 123 // Initialize the member needed to track the metrics enabled state. This is |
118 // only to be called on the UI thread. | 124 // only to be called on the UI thread. |
119 void InitializeMetricsEnabledStateOnUIThread(); | 125 void InitializeMetricsEnabledStateOnUIThread(); |
120 | 126 |
121 // Returns whether or not metrics reporting is enabled in the browser instance | 127 // Returns whether or not metrics reporting is enabled in the browser instance |
122 // on which this profile resides. This is safe for use from the IO thread, and | 128 // on which this profile resides. This is safe for use from the IO thread, and |
123 // should only be called from there. | 129 // should only be called from there. |
124 bool GetMetricsEnabledStateOnIOThread() const; | 130 bool GetMetricsEnabledStateOnIOThread() const; |
125 | 131 |
126 protected: | 132 protected: |
(...skipping 19 matching lines...) Expand all Loading... |
146 | 152 |
147 FilePath path; | 153 FilePath path; |
148 std::string accept_language; | 154 std::string accept_language; |
149 std::string accept_charset; | 155 std::string accept_charset; |
150 std::string referrer_charset; | 156 std::string referrer_charset; |
151 IOThread* io_thread; | 157 IOThread* io_thread; |
152 scoped_refptr<CookieSettings> cookie_settings; | 158 scoped_refptr<CookieSettings> cookie_settings; |
153 scoped_refptr<net::SSLConfigService> ssl_config_service; | 159 scoped_refptr<net::SSLConfigService> ssl_config_service; |
154 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; | 160 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; |
155 scoped_refptr<ExtensionInfoMap> extension_info_map; | 161 scoped_refptr<ExtensionInfoMap> extension_info_map; |
| 162 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| 163 resource_prefetch_predictor_observer_; |
156 | 164 |
157 #if defined(ENABLE_NOTIFICATIONS) | 165 #if defined(ENABLE_NOTIFICATIONS) |
158 DesktopNotificationService* notification_service; | 166 DesktopNotificationService* notification_service; |
159 #endif | 167 #endif |
160 | 168 |
161 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; | 169 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; |
162 // We need to initialize the ProxyConfigService from the UI thread | 170 // We need to initialize the ProxyConfigService from the UI thread |
163 // because on linux it relies on initializing things through gconf, | 171 // because on linux it relies on initializing things through gconf, |
164 // and needs to be on the main thread. | 172 // and needs to be on the main thread. |
165 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 173 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_; | 346 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_; |
339 mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_; | 347 mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_; |
340 // One AppRequestContext per isolated app. | 348 // One AppRequestContext per isolated app. |
341 mutable AppRequestContextMap app_request_context_map_; | 349 mutable AppRequestContextMap app_request_context_map_; |
342 | 350 |
343 mutable scoped_ptr<ResourceContext> resource_context_; | 351 mutable scoped_ptr<ResourceContext> resource_context_; |
344 | 352 |
345 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; | 353 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; |
346 mutable scoped_refptr<CookieSettings> cookie_settings_; | 354 mutable scoped_refptr<CookieSettings> cookie_settings_; |
347 | 355 |
| 356 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| 357 resource_prefetch_predictor_observer_; |
| 358 |
348 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 359 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
349 bool initialized_on_UI_thread_; | 360 bool initialized_on_UI_thread_; |
350 | 361 |
351 bool is_incognito_; | 362 bool is_incognito_; |
352 | 363 |
353 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 364 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
354 }; | 365 }; |
355 | 366 |
356 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 367 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |