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

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

Issue 398853003: [Android] Enable SB protection when --enable-spdy-proxy-auth is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 #include "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 #if defined(ENABLE_MANAGED_USERS) 91 #if defined(ENABLE_MANAGED_USERS)
92 #include "chrome/browser/supervised_user/supervised_user_service.h" 92 #include "chrome/browser/supervised_user/supervised_user_service.h"
93 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 93 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
94 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" 94 #include "chrome/browser/supervised_user/supervised_user_url_filter.h"
95 #endif 95 #endif
96 96
97 #if defined(OS_ANDROID) 97 #if defined(OS_ANDROID)
98 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" 98 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
99 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_and roid.h" 99 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_and roid.h"
100 #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h "
100 #endif // defined(OS_ANDROID) 101 #endif // defined(OS_ANDROID)
101 102
102 #if defined(OS_CHROMEOS) 103 #if defined(OS_CHROMEOS)
103 #include "chrome/browser/chromeos/drive/drive_protocol_handler.h" 104 #include "chrome/browser/chromeos/drive/drive_protocol_handler.h"
104 #include "chrome/browser/chromeos/login/startup_utils.h" 105 #include "chrome/browser/chromeos/login/startup_utils.h"
105 #include "chrome/browser/chromeos/login/users/user.h" 106 #include "chrome/browser/chromeos/login/users/user.h"
106 #include "chrome/browser/chromeos/login/users/user_manager.h" 107 #include "chrome/browser/chromeos/login/users/user_manager.h"
107 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" 108 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
108 #include "chrome/browser/chromeos/policy/policy_cert_service.h" 109 #include "chrome/browser/chromeos/policy/policy_cert_service.h"
109 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" 110 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h"
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 834
834 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { 835 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const {
835 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 836 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
836 #if defined(OS_CHROMEOS) 837 #if defined(OS_CHROMEOS)
837 return enable_metrics_; 838 return enable_metrics_;
838 #else 839 #else
839 return enable_metrics_.GetValue(); 840 return enable_metrics_.GetValue();
840 #endif // defined(OS_CHROMEOS) 841 #endif // defined(OS_CHROMEOS)
841 } 842 }
842 843
844 #if defined(OS_ANDROID)
845 bool ProfileIOData::IsDataReductionProxyEnabled() const {
846 return data_reduction_proxy_enabled_.GetValue()
847 || CommandLine::ForCurrentProcess()->HasSwitch(
sky 2014/07/17 03:28:36 nit: || on previous line.
848 data_reduction_proxy::switches::kEnableDataReductionProxy);
849 }
850 #endif
851
843 base::WeakPtr<net::HttpServerProperties> 852 base::WeakPtr<net::HttpServerProperties>
844 ProfileIOData::http_server_properties() const { 853 ProfileIOData::http_server_properties() const {
845 return http_server_properties_->GetWeakPtr(); 854 return http_server_properties_->GetWeakPtr();
846 } 855 }
847 856
848 void ProfileIOData::set_http_server_properties( 857 void ProfileIOData::set_http_server_properties(
849 scoped_ptr<net::HttpServerProperties> http_server_properties) const { 858 scoped_ptr<net::HttpServerProperties> http_server_properties) const {
850 http_server_properties_ = http_server_properties.Pass(); 859 http_server_properties_ = http_server_properties.Pass();
851 } 860 }
852 861
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 void ProfileIOData::SetCookieSettingsForTesting( 1260 void ProfileIOData::SetCookieSettingsForTesting(
1252 CookieSettings* cookie_settings) { 1261 CookieSettings* cookie_settings) {
1253 DCHECK(!cookie_settings_.get()); 1262 DCHECK(!cookie_settings_.get());
1254 cookie_settings_ = cookie_settings; 1263 cookie_settings_ = cookie_settings;
1255 } 1264 }
1256 1265
1257 void ProfileIOData::set_signin_names_for_testing( 1266 void ProfileIOData::set_signin_names_for_testing(
1258 SigninNamesOnIOThread* signin_names) { 1267 SigninNamesOnIOThread* signin_names) {
1259 signin_names_.reset(signin_names); 1268 signin_names_.reset(signin_names);
1260 } 1269 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698