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

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

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: errata Created 6 years, 6 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
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 extensions_request_context_.reset(new ChromeURLRequestContext()); 978 extensions_request_context_.reset(new ChromeURLRequestContext());
979 979
980 ChromeNetworkDelegate* network_delegate = 980 ChromeNetworkDelegate* network_delegate =
981 new ChromeNetworkDelegate( 981 new ChromeNetworkDelegate(
982 io_thread_globals->extension_event_router_forwarder.get(), 982 io_thread_globals->extension_event_router_forwarder.get(),
983 &enable_referrers_); 983 &enable_referrers_);
984 network_delegate->set_data_reduction_proxy_params( 984 network_delegate->set_data_reduction_proxy_params(
985 io_thread_globals->data_reduction_proxy_params.get()); 985 io_thread_globals->data_reduction_proxy_params.get());
986 network_delegate->set_data_reduction_proxy_usage_stats( 986 network_delegate->set_data_reduction_proxy_usage_stats(
987 io_thread_globals->data_reduction_proxy_usage_stats.get()); 987 io_thread_globals->data_reduction_proxy_usage_stats.get());
988 network_delegate->set_data_reduction_proxy_auth_request_handler(
989 io_thread_globals->data_reduction_proxy_auth_request_handler.get());
988 if (command_line.HasSwitch(switches::kEnableClientHints)) 990 if (command_line.HasSwitch(switches::kEnableClientHints))
989 network_delegate->SetEnableClientHints(); 991 network_delegate->SetEnableClientHints();
990 network_delegate->set_extension_info_map( 992 network_delegate->set_extension_info_map(
991 profile_params_->extension_info_map.get()); 993 profile_params_->extension_info_map.get());
992 #if defined(ENABLE_CONFIGURATION_POLICY) 994 #if defined(ENABLE_CONFIGURATION_POLICY)
993 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); 995 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get());
994 #endif 996 #endif
995 network_delegate->set_profile(profile_params_->profile); 997 network_delegate->set_profile(profile_params_->profile);
996 network_delegate->set_profile_path(profile_params_->path); 998 network_delegate->set_profile_path(profile_params_->path);
997 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get()); 999 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get());
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 void ProfileIOData::SetCookieSettingsForTesting( 1236 void ProfileIOData::SetCookieSettingsForTesting(
1235 CookieSettings* cookie_settings) { 1237 CookieSettings* cookie_settings) {
1236 DCHECK(!cookie_settings_.get()); 1238 DCHECK(!cookie_settings_.get());
1237 cookie_settings_ = cookie_settings; 1239 cookie_settings_ = cookie_settings;
1238 } 1240 }
1239 1241
1240 void ProfileIOData::set_signin_names_for_testing( 1242 void ProfileIOData::set_signin_names_for_testing(
1241 SigninNamesOnIOThread* signin_names) { 1243 SigninNamesOnIOThread* signin_names) {
1242 signin_names_.reset(signin_names); 1244 signin_names_.reset(signin_names);
1243 } 1245 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698