| 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/prefs/pref_member.h" | 18 #include "base/prefs/pref_member.h" |
| 19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 21 #include "chrome/browser/io_thread.h" | 21 #include "chrome/browser/io_thread.h" |
| 22 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.
h" | |
| 23 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 24 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 23 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
| 25 #include "components/content_settings/core/common/content_settings_types.h" | 24 #include "components/content_settings/core/common/content_settings_types.h" |
| 26 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth
_request_handler.h" | 25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth
_request_handler.h" |
| 26 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator.h" |
| 27 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" | 27 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" |
| 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" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 404 |
| 405 base::Callback<void(bool)> data_reduction_proxy_unavailable_callback() const { | 405 base::Callback<void(bool)> data_reduction_proxy_unavailable_callback() const { |
| 406 return data_reduction_proxy_unavailable_callback_; | 406 return data_reduction_proxy_unavailable_callback_; |
| 407 } | 407 } |
| 408 | 408 |
| 409 void set_data_reduction_proxy_unavailable_callback( | 409 void set_data_reduction_proxy_unavailable_callback( |
| 410 const base::Callback<void(bool)>& unavailable_callback) const { | 410 const base::Callback<void(bool)>& unavailable_callback) const { |
| 411 data_reduction_proxy_unavailable_callback_ = unavailable_callback; | 411 data_reduction_proxy_unavailable_callback_ = unavailable_callback; |
| 412 } | 412 } |
| 413 | 413 |
| 414 DataReductionProxyChromeConfigurator* | 414 data_reduction_proxy::DataReductionProxyConfigurator* |
| 415 data_reduction_proxy_chrome_configurator() const { | 415 data_reduction_proxy_configurator() const { |
| 416 return data_reduction_proxy_chrome_configurator_.get(); | 416 return data_reduction_proxy_configurator_.get(); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void set_data_reduction_proxy_chrome_configurator( | 419 void set_data_reduction_proxy_configurator( |
| 420 scoped_ptr<DataReductionProxyChromeConfigurator> | 420 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
| 421 data_reduction_proxy_chrome_configurator) const { | 421 data_reduction_proxy_configurator) const { |
| 422 data_reduction_proxy_chrome_configurator_ = | 422 data_reduction_proxy_configurator_ = |
| 423 data_reduction_proxy_chrome_configurator.Pass(); | 423 data_reduction_proxy_configurator.Pass(); |
| 424 } | 424 } |
| 425 | 425 |
| 426 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 426 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
| 427 data_reduction_proxy_auth_request_handler() const { | 427 data_reduction_proxy_auth_request_handler() const { |
| 428 return data_reduction_proxy_auth_request_handler_.get(); | 428 return data_reduction_proxy_auth_request_handler_.get(); |
| 429 } | 429 } |
| 430 | 430 |
| 431 void set_data_reduction_proxy_auth_request_handler( | 431 void set_data_reduction_proxy_auth_request_handler( |
| 432 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 432 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 433 data_reduction_proxy_auth_request_handler) const { | 433 data_reduction_proxy_auth_request_handler) const { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 // The data_reduction_proxy_* classes are passed in to |network_delegate_|, | 649 // The data_reduction_proxy_* classes are passed in to |network_delegate_|, |
| 650 // so this ordering ensures that the |network_delegate_| never references | 650 // so this ordering ensures that the |network_delegate_| never references |
| 651 // freed objects. | 651 // freed objects. |
| 652 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 652 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 653 data_reduction_proxy_params_; | 653 data_reduction_proxy_params_; |
| 654 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | 654 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> |
| 655 data_reduction_proxy_usage_stats_; | 655 data_reduction_proxy_usage_stats_; |
| 656 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | 656 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
| 657 data_reduction_proxy_statistics_prefs_; | 657 data_reduction_proxy_statistics_prefs_; |
| 658 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; | 658 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; |
| 659 mutable scoped_ptr<DataReductionProxyChromeConfigurator> | 659 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
| 660 data_reduction_proxy_chrome_configurator_; | 660 data_reduction_proxy_configurator_; |
| 661 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 661 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 662 data_reduction_proxy_auth_request_handler_; | 662 data_reduction_proxy_auth_request_handler_; |
| 663 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 663 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
| 664 data_reduction_proxy_event_store_; | 664 data_reduction_proxy_event_store_; |
| 665 | 665 |
| 666 mutable scoped_ptr<net::FraudulentCertificateReporter> | 666 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 667 fraudulent_certificate_reporter_; | 667 fraudulent_certificate_reporter_; |
| 668 mutable scoped_ptr<net::ProxyService> proxy_service_; | 668 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 669 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 669 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 670 mutable scoped_ptr<net::HttpServerProperties> | 670 mutable scoped_ptr<net::HttpServerProperties> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 710 |
| 711 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 711 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 712 bool initialized_on_UI_thread_; | 712 bool initialized_on_UI_thread_; |
| 713 | 713 |
| 714 const Profile::ProfileType profile_type_; | 714 const Profile::ProfileType profile_type_; |
| 715 | 715 |
| 716 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 716 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 717 }; | 717 }; |
| 718 | 718 |
| 719 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 719 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |