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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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()); |
247 | 247 |
248 main_http_factory_.reset(main_cache); | 248 main_http_factory_.reset(main_cache); |
249 url_request_context_->set_http_transaction_factory(main_cache); | 249 url_request_context_->set_http_transaction_factory(main_cache); |
250 url_request_context_->set_cookie_store(cookie_store_); | 250 url_request_context_->set_cookie_store(cookie_store_.get()); |
251 | 251 |
252 job_factory_ = CreateJobFactory(&protocol_handlers_, | 252 job_factory_ = CreateJobFactory(&protocol_handlers_, |
253 request_interceptors_.Pass()); | 253 request_interceptors_.Pass()); |
254 url_request_context_->set_job_factory(job_factory_.get()); | 254 url_request_context_->set_job_factory(job_factory_.get()); |
255 } | 255 } |
256 | 256 |
257 net::URLRequestContext* AwURLRequestContextGetter::GetURLRequestContext() { | 257 net::URLRequestContext* AwURLRequestContextGetter::GetURLRequestContext() { |
258 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 258 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
259 if (!url_request_context_) | 259 if (!url_request_context_) |
260 InitializeURLRequestContext(); | 260 InitializeURLRequestContext(); |
(...skipping 16 matching lines...) Expand all Loading... |
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 |
OLD | NEW |