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

Side by Side Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Fixing net internals bandwidth page Created 6 years, 3 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 #include "android_webview/browser/net/aw_url_request_context_getter.h" 5 #include "android_webview/browser/net/aw_url_request_context_getter.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_content_browser_client.h" 10 #include "android_webview/browser/aw_content_browser_client.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 DataReductionProxySettings* data_reduction_proxy_settings = 232 DataReductionProxySettings* data_reduction_proxy_settings =
233 browser_context->GetDataReductionProxySettings(); 233 browser_context->GetDataReductionProxySettings();
234 DCHECK(data_reduction_proxy_settings); 234 DCHECK(data_reduction_proxy_settings);
235 data_reduction_proxy_auth_request_handler_.reset( 235 data_reduction_proxy_auth_request_handler_.reset(
236 new data_reduction_proxy::DataReductionProxyAuthRequestHandler( 236 new data_reduction_proxy::DataReductionProxyAuthRequestHandler(
237 data_reduction_proxy::kClientAndroidWebview, 237 data_reduction_proxy::kClientAndroidWebview,
238 data_reduction_proxy::kAndroidWebViewProtocolVersion, 238 data_reduction_proxy::kAndroidWebViewProtocolVersion,
239 data_reduction_proxy_settings->params(), 239 data_reduction_proxy_settings->params(),
240 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 240 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
241 241
242 // Compression statistics are not gathered for WebView, so
243 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the
244 // network delegate.
242 aw_network_delegate->set_data_reduction_proxy_params( 245 aw_network_delegate->set_data_reduction_proxy_params(
243 data_reduction_proxy_settings->params()); 246 data_reduction_proxy_settings->params());
244 aw_network_delegate->set_data_reduction_proxy_auth_request_handler( 247 aw_network_delegate->set_data_reduction_proxy_auth_request_handler(
245 data_reduction_proxy_auth_request_handler_.get()); 248 data_reduction_proxy_auth_request_handler_.get());
246 #endif 249 #endif
247 250
248 main_http_factory_.reset(main_cache); 251 main_http_factory_.reset(main_cache);
249 url_request_context_->set_http_transaction_factory(main_cache); 252 url_request_context_->set_http_transaction_factory(main_cache);
250 url_request_context_->set_cookie_store(cookie_store_); 253 url_request_context_->set_cookie_store(cookie_store_);
251 254
(...skipping 25 matching lines...) Expand all
277 data_reduction_proxy::DataReductionProxyAuthRequestHandler* 280 data_reduction_proxy::DataReductionProxyAuthRequestHandler*
278 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const { 281 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const {
279 return data_reduction_proxy_auth_request_handler_.get(); 282 return data_reduction_proxy_auth_request_handler_.get();
280 } 283 }
281 284
282 net::NetLog* AwURLRequestContextGetter::GetNetLog() { 285 net::NetLog* AwURLRequestContextGetter::GetNetLog() {
283 return net_log_.get(); 286 return net_log_.get();
284 } 287 }
285 288
286 } // namespace android_webview 289 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698