| OLD | NEW |
| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 229 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
| 230 AwBrowserContext* browser_context = AwBrowserContext::GetDefault(); | 230 AwBrowserContext* browser_context = AwBrowserContext::GetDefault(); |
| 231 DCHECK(browser_context); | 231 DCHECK(browser_context); |
| 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, | |
| 239 data_reduction_proxy_settings->params(), | 238 data_reduction_proxy_settings->params(), |
| 240 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); | 239 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |
| 241 | 240 |
| 242 // Compression statistics are not gathered for WebView, so | 241 // Compression statistics are not gathered for WebView, so |
| 243 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the | 242 // DataReductionProxyStatisticsPrefs is not instantiated and passed to the |
| 244 // network delegate. | 243 // network delegate. |
| 245 aw_network_delegate->set_data_reduction_proxy_params( | 244 aw_network_delegate->set_data_reduction_proxy_params( |
| 246 data_reduction_proxy_settings->params()); | 245 data_reduction_proxy_settings->params()); |
| 247 aw_network_delegate->set_data_reduction_proxy_auth_request_handler( | 246 aw_network_delegate->set_data_reduction_proxy_auth_request_handler( |
| 248 data_reduction_proxy_auth_request_handler_.get()); | 247 data_reduction_proxy_auth_request_handler_.get()); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 279 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
| 281 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const { | 280 AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const { |
| 282 return data_reduction_proxy_auth_request_handler_.get(); | 281 return data_reduction_proxy_auth_request_handler_.get(); |
| 283 } | 282 } |
| 284 | 283 |
| 285 net::NetLog* AwURLRequestContextGetter::GetNetLog() { | 284 net::NetLog* AwURLRequestContextGetter::GetNetLog() { |
| 286 return net_log_.get(); | 285 return net_log_.get(); |
| 287 } | 286 } |
| 288 | 287 |
| 289 } // namespace android_webview | 288 } // namespace android_webview |
| OLD | NEW |