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 namespace chrome_browser_net { | |
46 class ResourcePrefetchPredictorObserver; | |
47 } | |
48 | |
49 namespace extensions { | 45 namespace extensions { |
50 class InfoMap; | 46 class InfoMap; |
51 } | 47 } |
52 | 48 |
53 namespace net { | 49 namespace net { |
54 class CertVerifier; | 50 class CertVerifier; |
55 class ChannelIDService; | 51 class ChannelIDService; |
56 class CookieStore; | 52 class CookieStore; |
57 class FraudulentCertificateReporter; | 53 class FraudulentCertificateReporter; |
58 class FtpTransactionFactory; | 54 class FtpTransactionFactory; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 Profile::ProfileType profile_type() const { | 221 Profile::ProfileType profile_type() const { |
226 return profile_type_; | 222 return profile_type_; |
227 } | 223 } |
228 | 224 |
229 bool IsOffTheRecord() const; | 225 bool IsOffTheRecord() const; |
230 | 226 |
231 IntegerPrefMember* incognito_availibility() const { | 227 IntegerPrefMember* incognito_availibility() const { |
232 return &incognito_availibility_pref_; | 228 return &incognito_availibility_pref_; |
233 } | 229 } |
234 | 230 |
235 chrome_browser_net::ResourcePrefetchPredictorObserver* | |
236 resource_prefetch_predictor_observer() const { | |
237 return resource_prefetch_predictor_observer_.get(); | |
238 } | |
239 | |
240 #if defined(ENABLE_CONFIGURATION_POLICY) | 231 #if defined(ENABLE_CONFIGURATION_POLICY) |
241 policy::PolicyHeaderIOHelper* policy_header_helper() const { | 232 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
242 return policy_header_helper_.get(); | 233 return policy_header_helper_.get(); |
243 } | 234 } |
244 #endif | 235 #endif |
245 | 236 |
246 #if defined(ENABLE_MANAGED_USERS) | 237 #if defined(ENABLE_MANAGED_USERS) |
247 const SupervisedUserURLFilter* supervised_user_url_filter() const { | 238 const SupervisedUserURLFilter* supervised_user_url_filter() const { |
248 return supervised_user_url_filter_.get(); | 239 return supervised_user_url_filter_.get(); |
249 } | 240 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 303 |
313 base::FilePath path; | 304 base::FilePath path; |
314 IOThread* io_thread; | 305 IOThread* io_thread; |
315 scoped_refptr<CookieSettings> cookie_settings; | 306 scoped_refptr<CookieSettings> cookie_settings; |
316 scoped_refptr<HostContentSettingsMap> host_content_settings_map; | 307 scoped_refptr<HostContentSettingsMap> host_content_settings_map; |
317 scoped_refptr<net::SSLConfigService> ssl_config_service; | 308 scoped_refptr<net::SSLConfigService> ssl_config_service; |
318 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; | 309 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; |
319 #if defined(ENABLE_EXTENSIONS) | 310 #if defined(ENABLE_EXTENSIONS) |
320 scoped_refptr<extensions::InfoMap> extension_info_map; | 311 scoped_refptr<extensions::InfoMap> extension_info_map; |
321 #endif | 312 #endif |
322 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | |
323 resource_prefetch_predictor_observer_; | |
324 | 313 |
325 // This pointer exists only as a means of conveying a url job factory | 314 // This pointer exists only as a means of conveying a url job factory |
326 // pointer from the protocol handler registry on the UI thread to the | 315 // pointer from the protocol handler registry on the UI thread to the |
327 // the URLRequestContext on the IO thread. The consumer MUST take | 316 // the URLRequestContext on the IO thread. The consumer MUST take |
328 // ownership of the object by calling release() on this pointer. | 317 // ownership of the object by calling release() on this pointer. |
329 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 318 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
330 protocol_handler_interceptor; | 319 protocol_handler_interceptor; |
331 | 320 |
332 // We need to initialize the ProxyConfigService from the UI thread | 321 // We need to initialize the ProxyConfigService from the UI thread |
333 // because on linux it relies on initializing things through gconf, | 322 // because on linux it relies on initializing things through gconf, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 // One URLRequestContext per isolated app for main and media requests. | 594 // One URLRequestContext per isolated app for main and media requests. |
606 mutable URLRequestContextMap app_request_context_map_; | 595 mutable URLRequestContextMap app_request_context_map_; |
607 mutable URLRequestContextMap isolated_media_request_context_map_; | 596 mutable URLRequestContextMap isolated_media_request_context_map_; |
608 | 597 |
609 mutable scoped_ptr<ResourceContext> resource_context_; | 598 mutable scoped_ptr<ResourceContext> resource_context_; |
610 | 599 |
611 mutable scoped_refptr<CookieSettings> cookie_settings_; | 600 mutable scoped_refptr<CookieSettings> cookie_settings_; |
612 | 601 |
613 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 602 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
614 | 603 |
615 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | |
616 resource_prefetch_predictor_observer_; | |
617 | |
618 mutable scoped_ptr<ChromeHttpUserAgentSettings> | 604 mutable scoped_ptr<ChromeHttpUserAgentSettings> |
619 chrome_http_user_agent_settings_; | 605 chrome_http_user_agent_settings_; |
620 | 606 |
621 #if defined(ENABLE_MANAGED_USERS) | 607 #if defined(ENABLE_MANAGED_USERS) |
622 mutable scoped_refptr<const SupervisedUserURLFilter> | 608 mutable scoped_refptr<const SupervisedUserURLFilter> |
623 supervised_user_url_filter_; | 609 supervised_user_url_filter_; |
624 #endif | 610 #endif |
625 | 611 |
626 mutable scoped_ptr<DevToolsNetworkController> network_controller_; | 612 mutable scoped_ptr<DevToolsNetworkController> network_controller_; |
627 | 613 |
628 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 614 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
629 bool initialized_on_UI_thread_; | 615 bool initialized_on_UI_thread_; |
630 | 616 |
631 const Profile::ProfileType profile_type_; | 617 const Profile::ProfileType profile_type_; |
632 | 618 |
633 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 619 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
634 }; | 620 }; |
635 | 621 |
636 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 622 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |