| 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 17 matching lines...) Expand all Loading... |
| 28 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag
e_stats.h" | 28 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag
e_stats.h" |
| 29 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" | 29 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
| 30 #include "content/public/browser/content_browser_client.h" | 30 #include "content/public/browser/content_browser_client.h" |
| 31 #include "content/public/browser/resource_context.h" | 31 #include "content/public/browser/resource_context.h" |
| 32 #include "net/cookies/cookie_monster.h" | 32 #include "net/cookies/cookie_monster.h" |
| 33 #include "net/http/http_cache.h" | 33 #include "net/http/http_cache.h" |
| 34 #include "net/http/http_network_session.h" | 34 #include "net/http/http_network_session.h" |
| 35 #include "net/url_request/url_request_context.h" | 35 #include "net/url_request/url_request_context.h" |
| 36 #include "net/url_request/url_request_job_factory.h" | 36 #include "net/url_request/url_request_job_factory.h" |
| 37 | 37 |
| 38 #if defined(OS_ANDROID) |
| 39 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u
i_service.h" |
| 40 #endif |
| 41 |
| 38 class ChromeHttpUserAgentSettings; | 42 class ChromeHttpUserAgentSettings; |
| 39 class ChromeNetworkDelegate; | 43 class ChromeNetworkDelegate; |
| 40 class ChromeURLRequestContextGetter; | 44 class ChromeURLRequestContextGetter; |
| 41 class CookieSettings; | 45 class CookieSettings; |
| 42 class DevToolsNetworkController; | 46 class DevToolsNetworkController; |
| 43 class HostContentSettingsMap; | 47 class HostContentSettingsMap; |
| 44 class MediaDeviceIDSalt; | 48 class MediaDeviceIDSalt; |
| 45 class ProtocolHandlerRegistry; | 49 class ProtocolHandlerRegistry; |
| 46 class SigninNamesOnIOThread; | 50 class SigninNamesOnIOThread; |
| 47 class SupervisedUserURLFilter; | 51 class SupervisedUserURLFilter; |
| 48 | 52 |
| 49 namespace chrome_browser_net { | 53 namespace chrome_browser_net { |
| 50 class ResourcePrefetchPredictorObserver; | 54 class ResourcePrefetchPredictorObserver; |
| 51 } | 55 } |
| 52 | 56 |
| 57 namespace data_reduction_proxy { |
| 58 class DataReductionProxyParams; |
| 59 } |
| 60 |
| 53 namespace extensions { | 61 namespace extensions { |
| 54 class InfoMap; | 62 class InfoMap; |
| 55 } | 63 } |
| 56 | 64 |
| 57 namespace net { | 65 namespace net { |
| 58 class CertVerifier; | 66 class CertVerifier; |
| 59 class ChannelIDService; | 67 class ChannelIDService; |
| 60 class CookieStore; | 68 class CookieStore; |
| 61 class FraudulentCertificateReporter; | 69 class FraudulentCertificateReporter; |
| 62 class FtpTransactionFactory; | 70 class FtpTransactionFactory; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const; | 207 content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const; |
| 200 | 208 |
| 201 DevToolsNetworkController* network_controller() const { | 209 DevToolsNetworkController* network_controller() const { |
| 202 return network_controller_.get(); | 210 return network_controller_.get(); |
| 203 } | 211 } |
| 204 | 212 |
| 205 net::TransportSecurityState* transport_security_state() const { | 213 net::TransportSecurityState* transport_security_state() const { |
| 206 return transport_security_state_.get(); | 214 return transport_security_state_.get(); |
| 207 } | 215 } |
| 208 | 216 |
| 217 data_reduction_proxy::DataReductionProxyParams* data_reduction_proxy_params() |
| 218 const { |
| 219 return data_reduction_proxy_params_.get(); |
| 220 } |
| 221 |
| 222 #if defined(OS_ANDROID) |
| 223 data_reduction_proxy::DataReductionProxyUIService* |
| 224 data_reduction_proxy_ui_service() const { |
| 225 return data_reduction_proxy_ui_service_.get(); |
| 226 } |
| 227 #endif |
| 228 |
| 209 #if defined(OS_CHROMEOS) | 229 #if defined(OS_CHROMEOS) |
| 210 std::string username_hash() const { | 230 std::string username_hash() const { |
| 211 return username_hash_; | 231 return username_hash_; |
| 212 } | 232 } |
| 213 | 233 |
| 214 bool use_system_key_slot() const { return use_system_key_slot_; } | 234 bool use_system_key_slot() const { return use_system_key_slot_; } |
| 215 #endif | 235 #endif |
| 216 | 236 |
| 217 Profile::ProfileType profile_type() const { | 237 Profile::ProfileType profile_type() const { |
| 218 return profile_type_; | 238 return profile_type_; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 void ShutdownOnUIThread( | 380 void ShutdownOnUIThread( |
| 361 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters); | 381 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters); |
| 362 | 382 |
| 363 // A ChannelIDService object is created by a derived class of | 383 // A ChannelIDService object is created by a derived class of |
| 364 // ProfileIOData, and the derived class calls this method to set the | 384 // ProfileIOData, and the derived class calls this method to set the |
| 365 // channel_id_service_ member and transfers ownership to the base | 385 // channel_id_service_ member and transfers ownership to the base |
| 366 // class. | 386 // class. |
| 367 void set_channel_id_service( | 387 void set_channel_id_service( |
| 368 net::ChannelIDService* channel_id_service) const; | 388 net::ChannelIDService* channel_id_service) const; |
| 369 | 389 |
| 370 data_reduction_proxy::DataReductionProxyParams* data_reduction_proxy_params() | |
| 371 const { | |
| 372 return data_reduction_proxy_params_.get(); | |
| 373 } | |
| 374 | |
| 375 void set_data_reduction_proxy_params( | 390 void set_data_reduction_proxy_params( |
| 376 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 391 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 377 data_reduction_proxy_params) const { | 392 data_reduction_proxy_params) const { |
| 378 data_reduction_proxy_params_ = data_reduction_proxy_params.Pass(); | 393 data_reduction_proxy_params_ = data_reduction_proxy_params.Pass(); |
| 379 } | 394 } |
| 380 | 395 |
| 381 data_reduction_proxy::DataReductionProxyUsageStats* | 396 data_reduction_proxy::DataReductionProxyUsageStats* |
| 382 data_reduction_proxy_usage_stats() const { | 397 data_reduction_proxy_usage_stats() const { |
| 383 return data_reduction_proxy_usage_stats_.get(); | 398 return data_reduction_proxy_usage_stats_.get(); |
| 384 } | 399 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 return data_reduction_proxy_event_store_.get(); | 455 return data_reduction_proxy_event_store_.get(); |
| 441 } | 456 } |
| 442 | 457 |
| 443 void set_data_reduction_proxy_event_store( | 458 void set_data_reduction_proxy_event_store( |
| 444 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 459 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
| 445 data_reduction_proxy_event_store) const { | 460 data_reduction_proxy_event_store) const { |
| 446 data_reduction_proxy_event_store_ = | 461 data_reduction_proxy_event_store_ = |
| 447 data_reduction_proxy_event_store.Pass(); | 462 data_reduction_proxy_event_store.Pass(); |
| 448 } | 463 } |
| 449 | 464 |
| 465 #if defined(OS_ANDROID) |
| 466 void set_data_reduction_proxy_ui_service( |
| 467 scoped_ptr<data_reduction_proxy::DataReductionProxyUIService> |
| 468 data_reduction_proxy_ui_service) const { |
| 469 data_reduction_proxy_ui_service_ = |
| 470 data_reduction_proxy_ui_service.Pass(); |
| 471 } |
| 472 #endif |
| 473 |
| 450 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { | 474 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { |
| 451 return fraudulent_certificate_reporter_.get(); | 475 return fraudulent_certificate_reporter_.get(); |
| 452 } | 476 } |
| 453 | 477 |
| 454 net::ProxyService* proxy_service() const { | 478 net::ProxyService* proxy_service() const { |
| 455 return proxy_service_.get(); | 479 return proxy_service_.get(); |
| 456 } | 480 } |
| 457 | 481 |
| 458 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; | 482 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; |
| 459 | 483 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 data_reduction_proxy_usage_stats_; | 679 data_reduction_proxy_usage_stats_; |
| 656 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | 680 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
| 657 data_reduction_proxy_statistics_prefs_; | 681 data_reduction_proxy_statistics_prefs_; |
| 658 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; | 682 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; |
| 659 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | 683 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
| 660 data_reduction_proxy_configurator_; | 684 data_reduction_proxy_configurator_; |
| 661 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 685 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 662 data_reduction_proxy_auth_request_handler_; | 686 data_reduction_proxy_auth_request_handler_; |
| 663 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 687 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
| 664 data_reduction_proxy_event_store_; | 688 data_reduction_proxy_event_store_; |
| 689 #if defined(OS_ANDROID) |
| 690 // Must be declared after the DataReductionProxyChromeConfigurator, because |
| 691 // the configurator must be valid for the service's entire lifetime. |
| 692 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUIService> |
| 693 data_reduction_proxy_ui_service_; |
| 694 #endif |
| 665 | 695 |
| 666 mutable scoped_ptr<net::FraudulentCertificateReporter> | 696 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 667 fraudulent_certificate_reporter_; | 697 fraudulent_certificate_reporter_; |
| 668 mutable scoped_ptr<net::ProxyService> proxy_service_; | 698 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 669 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 699 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 670 mutable scoped_ptr<net::HttpServerProperties> | 700 mutable scoped_ptr<net::HttpServerProperties> |
| 671 http_server_properties_; | 701 http_server_properties_; |
| 672 #if defined(OS_CHROMEOS) | 702 #if defined(OS_CHROMEOS) |
| 673 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that | 703 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that |
| 674 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. | 704 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 740 |
| 711 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 741 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 712 bool initialized_on_UI_thread_; | 742 bool initialized_on_UI_thread_; |
| 713 | 743 |
| 714 const Profile::ProfileType profile_type_; | 744 const Profile::ProfileType profile_type_; |
| 715 | 745 |
| 716 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 746 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 717 }; | 747 }; |
| 718 | 748 |
| 719 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 749 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |