Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 792803007: Make Data Reduction Proxy a best effort proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from sclittle Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
mmenke 2015/01/05 15:42:42 Can't this be forward declared, and then included
bengr 2015/01/05 23:28:37 Done.
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 base::Callback<void(bool)> data_reduction_proxy_unavailable_callback() const { 409 base::Callback<void(bool)> data_reduction_proxy_unavailable_callback() const {
410 return data_reduction_proxy_unavailable_callback_; 410 return data_reduction_proxy_unavailable_callback_;
411 } 411 }
412 412
413 void set_data_reduction_proxy_unavailable_callback( 413 void set_data_reduction_proxy_unavailable_callback(
414 const base::Callback<void(bool)>& unavailable_callback) const { 414 const base::Callback<void(bool)>& unavailable_callback) const {
415 data_reduction_proxy_unavailable_callback_ = unavailable_callback; 415 data_reduction_proxy_unavailable_callback_ = unavailable_callback;
416 } 416 }
417 417
418 DataReductionProxyChromeConfigurator* 418 data_reduction_proxy::DataReductionProxyConfigurator*
419 data_reduction_proxy_chrome_configurator() const { 419 data_reduction_proxy_configurator() const {
420 return data_reduction_proxy_chrome_configurator_.get(); 420 return data_reduction_proxy_configurator_.get();
421 } 421 }
422 422
423 void set_data_reduction_proxy_chrome_configurator( 423 void set_data_reduction_proxy_configurator(
424 scoped_ptr<DataReductionProxyChromeConfigurator> 424 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
425 data_reduction_proxy_chrome_configurator) const { 425 data_reduction_proxy_configurator) const {
426 data_reduction_proxy_chrome_configurator_ = 426 data_reduction_proxy_configurator_ =
427 data_reduction_proxy_chrome_configurator.Pass(); 427 data_reduction_proxy_configurator.Pass();
428 } 428 }
429 429
430 data_reduction_proxy::DataReductionProxyAuthRequestHandler* 430 data_reduction_proxy::DataReductionProxyAuthRequestHandler*
431 data_reduction_proxy_auth_request_handler() const { 431 data_reduction_proxy_auth_request_handler() const {
432 return data_reduction_proxy_auth_request_handler_.get(); 432 return data_reduction_proxy_auth_request_handler_.get();
433 } 433 }
434 434
435 void set_data_reduction_proxy_auth_request_handler( 435 void set_data_reduction_proxy_auth_request_handler(
436 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 436 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
437 data_reduction_proxy_auth_request_handler) const { 437 data_reduction_proxy_auth_request_handler) const {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 // The data_reduction_proxy_* classes are passed in to |network_delegate_|, 654 // The data_reduction_proxy_* classes are passed in to |network_delegate_|,
655 // so this ordering ensures that the |network_delegate_| never references 655 // so this ordering ensures that the |network_delegate_| never references
656 // freed objects. 656 // freed objects.
657 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 657 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
658 data_reduction_proxy_params_; 658 data_reduction_proxy_params_;
659 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> 659 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats>
660 data_reduction_proxy_usage_stats_; 660 data_reduction_proxy_usage_stats_;
661 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> 661 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
662 data_reduction_proxy_statistics_prefs_; 662 data_reduction_proxy_statistics_prefs_;
663 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; 663 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
664 mutable scoped_ptr<DataReductionProxyChromeConfigurator> 664 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
665 data_reduction_proxy_chrome_configurator_; 665 data_reduction_proxy_configurator_;
666 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 666 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
667 data_reduction_proxy_auth_request_handler_; 667 data_reduction_proxy_auth_request_handler_;
668 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> 668 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore>
669 data_reduction_proxy_event_store_; 669 data_reduction_proxy_event_store_;
670 670
671 mutable scoped_ptr<net::FraudulentCertificateReporter> 671 mutable scoped_ptr<net::FraudulentCertificateReporter>
672 fraudulent_certificate_reporter_; 672 fraudulent_certificate_reporter_;
673 mutable scoped_ptr<net::ProxyService> proxy_service_; 673 mutable scoped_ptr<net::ProxyService> proxy_service_;
674 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; 674 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_;
675 mutable scoped_ptr<net::HttpServerProperties> 675 mutable scoped_ptr<net::HttpServerProperties>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 716 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
717 bool initialized_on_UI_thread_; 717 bool initialized_on_UI_thread_;
718 718
719 const Profile::ProfileType profile_type_; 719 const Profile::ProfileType profile_type_;
720 720
721 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 721 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
722 }; 722 };
723 723
724 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 724 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698