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

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: Addressed bengr nits 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 DataReductionProxySettings* data_reduction_proxy_settings = 229 DataReductionProxySettings* data_reduction_proxy_settings =
230 browser_context->GetDataReductionProxySettings(); 230 browser_context->GetDataReductionProxySettings();
231 DCHECK(data_reduction_proxy_settings); 231 DCHECK(data_reduction_proxy_settings);
232 data_reduction_proxy_auth_request_handler_.reset( 232 data_reduction_proxy_auth_request_handler_.reset(
233 new data_reduction_proxy::DataReductionProxyAuthRequestHandler( 233 new data_reduction_proxy::DataReductionProxyAuthRequestHandler(
234 data_reduction_proxy::kClientAndroidWebview, 234 data_reduction_proxy::kClientAndroidWebview,
235 data_reduction_proxy::kAndroidWebViewProtocolVersion, 235 data_reduction_proxy::kAndroidWebViewProtocolVersion,
236 data_reduction_proxy_settings->params(), 236 data_reduction_proxy_settings->params(),
237 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 237 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
238 238
239 // Compression statistics are not gathered for WebView, so
240 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the
241 // network delegate.
benm (inactive) 2014/09/10 09:26:32 Out of interest, what would it take to start gathe
239 aw_network_delegate->set_data_reduction_proxy_params( 242 aw_network_delegate->set_data_reduction_proxy_params(
240 data_reduction_proxy_settings->params()); 243 data_reduction_proxy_settings->params());
241 aw_network_delegate->set_data_reduction_proxy_auth_request_handler( 244 aw_network_delegate->set_data_reduction_proxy_auth_request_handler(
242 data_reduction_proxy_auth_request_handler_.get()); 245 data_reduction_proxy_auth_request_handler_.get());
243 #endif 246 #endif
244 247
245 main_http_factory_.reset(main_cache); 248 main_http_factory_.reset(main_cache);
246 url_request_context_->set_http_transaction_factory(main_cache); 249 url_request_context_->set_http_transaction_factory(main_cache);
247 url_request_context_->set_cookie_store(cookie_store_); 250 url_request_context_->set_cookie_store(cookie_store_);
248 251
(...skipping 21 matching lines...) Expand all
270 std::swap(protocol_handlers_, *protocol_handlers); 273 std::swap(protocol_handlers_, *protocol_handlers);
271 request_interceptors_.swap(request_interceptors); 274 request_interceptors_.swap(request_interceptors);
272 } 275 }
273 276
274 data_reduction_proxy::DataReductionProxyAuthRequestHandler* 277 data_reduction_proxy::DataReductionProxyAuthRequestHandler*
275 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const { 278 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const {
276 return data_reduction_proxy_auth_request_handler_.get(); 279 return data_reduction_proxy_auth_request_handler_.get();
277 } 280 }
278 281
279 } // namespace android_webview 282 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | chrome/browser/net/chrome_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698