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

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

Issue 596053003: Add client type in chrome-proxy header for desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension
Patch Set: Remove unnecessary const keyword. Created 6 years, 2 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 | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h » ('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 "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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 20 * 1024 * 1024, // 20M 226 20 * 1024 * 1024, // 20M
227 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE))); 227 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));
228 228
229 AwBrowserContext* browser_context = AwBrowserContext::GetDefault(); 229 AwBrowserContext* browser_context = AwBrowserContext::GetDefault();
230 DCHECK(browser_context); 230 DCHECK(browser_context);
231 DataReductionProxySettings* data_reduction_proxy_settings = 231 DataReductionProxySettings* data_reduction_proxy_settings =
232 browser_context->GetDataReductionProxySettings(); 232 browser_context->GetDataReductionProxySettings();
233 DCHECK(data_reduction_proxy_settings); 233 DCHECK(data_reduction_proxy_settings);
234 data_reduction_proxy_auth_request_handler_.reset( 234 data_reduction_proxy_auth_request_handler_.reset(
235 new data_reduction_proxy::DataReductionProxyAuthRequestHandler( 235 new data_reduction_proxy::DataReductionProxyAuthRequestHandler(
236 data_reduction_proxy::kClientAndroidWebview, 236 data_reduction_proxy::Client::WEBVIEW_ANDROID,
237 data_reduction_proxy_settings->params(), 237 data_reduction_proxy_settings->params(),
238 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 238 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
239 239
240 // Compression statistics are not gathered for WebView, so 240 // Compression statistics are not gathered for WebView, so
241 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the 241 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the
242 // network delegate. 242 // network delegate.
243 aw_network_delegate->set_data_reduction_proxy_params( 243 aw_network_delegate->set_data_reduction_proxy_params(
244 data_reduction_proxy_settings->params()); 244 data_reduction_proxy_settings->params());
245 aw_network_delegate->set_data_reduction_proxy_auth_request_handler( 245 aw_network_delegate->set_data_reduction_proxy_auth_request_handler(
246 data_reduction_proxy_auth_request_handler_.get()); 246 data_reduction_proxy_auth_request_handler_.get());
(...skipping 30 matching lines...) Expand all
277 data_reduction_proxy::DataReductionProxyAuthRequestHandler* 277 data_reduction_proxy::DataReductionProxyAuthRequestHandler*
278 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const { 278 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const {
279 return data_reduction_proxy_auth_request_handler_.get(); 279 return data_reduction_proxy_auth_request_handler_.get();
280 } 280 }
281 281
282 net::NetLog* AwURLRequestContextGetter::GetNetLog() { 282 net::NetLog* AwURLRequestContextGetter::GetNetLog() {
283 return net_log_.get(); 283 return net_log_.get();
284 } 284 }
285 285
286 } // namespace android_webview 286 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698