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

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

Issue 775773002: Add data reduction proxy debug info to net-internals#bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 #include "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 network_delegate()->set_data_reduction_proxy_auth_request_handler( 456 network_delegate()->set_data_reduction_proxy_auth_request_handler(
457 data_reduction_proxy_auth_request_handler()); 457 data_reduction_proxy_auth_request_handler());
458 network_delegate()->set_data_reduction_proxy_statistics_prefs( 458 network_delegate()->set_data_reduction_proxy_statistics_prefs(
459 data_reduction_proxy_statistics_prefs()); 459 data_reduction_proxy_statistics_prefs());
460 network_delegate()->set_on_resolve_proxy_handler( 460 network_delegate()->set_on_resolve_proxy_handler(
461 base::Bind(data_reduction_proxy::OnResolveProxyHandler)); 461 base::Bind(data_reduction_proxy::OnResolveProxyHandler));
462 network_delegate()->set_proxy_config_getter( 462 network_delegate()->set_proxy_config_getter(
463 base::Bind( 463 base::Bind(
464 &DataReductionProxyChromeConfigurator::GetProxyConfigOnIOThread, 464 &DataReductionProxyChromeConfigurator::GetProxyConfigOnIOThread,
465 base::Unretained(data_reduction_proxy_chrome_configurator()))); 465 base::Unretained(data_reduction_proxy_chrome_configurator())));
466 network_delegate()->set_data_reduction_proxy_event_store(
467 data_reduction_proxy_event_store());
466 network_delegate()->set_predictor(predictor_.get()); 468 network_delegate()->set_predictor(predictor_.get());
467 469
468 // Initialize context members. 470 // Initialize context members.
469 471
470 ApplyProfileParamsToContext(main_context); 472 ApplyProfileParamsToContext(main_context);
471 473
472 if (http_server_properties_manager_) 474 if (http_server_properties_manager_)
473 http_server_properties_manager_->InitializeOnNetworkThread(); 475 http_server_properties_manager_->InitializeOnNetworkThread();
474 476
475 main_context->set_transport_security_state(transport_security_state()); 477 main_context->set_transport_security_state(transport_security_state());
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 transport_security_state()->DeleteAllDynamicDataSince(time); 853 transport_security_state()->DeleteAllDynamicDataSince(time);
852 DCHECK(http_server_properties_manager_); 854 DCHECK(http_server_properties_manager_);
853 http_server_properties_manager_->Clear(completion); 855 http_server_properties_manager_->Clear(completion);
854 } 856 }
855 857
856 bool ProfileImplIOData::IsDataReductionProxyEnabled() const { 858 bool ProfileImplIOData::IsDataReductionProxyEnabled() const {
857 return data_reduction_proxy_enabled_.GetValue() || 859 return data_reduction_proxy_enabled_.GetValue() ||
858 CommandLine::ForCurrentProcess()->HasSwitch( 860 CommandLine::ForCurrentProcess()->HasSwitch(
859 data_reduction_proxy::switches::kEnableDataReductionProxy); 861 data_reduction_proxy::switches::kEnableDataReductionProxy);
860 } 862 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698