| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/shell_url_request_context_getter.h" | 5 #include "content/shell/browser/shell_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 protocol_handlers->clear(); | 82 protocol_handlers->clear(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace | 85 } // namespace |
| 86 | 86 |
| 87 ShellURLRequestContextGetter::ShellURLRequestContextGetter( | 87 ShellURLRequestContextGetter::ShellURLRequestContextGetter( |
| 88 bool ignore_certificate_errors, | 88 bool ignore_certificate_errors, |
| 89 const base::FilePath& base_path, | 89 const base::FilePath& base_path, |
| 90 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 90 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 91 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | |
| 92 ProtocolHandlerMap* protocol_handlers, | 91 ProtocolHandlerMap* protocol_handlers, |
| 93 URLRequestInterceptorScopedVector request_interceptors, | 92 URLRequestInterceptorScopedVector request_interceptors, |
| 94 net::NetLog* net_log) | 93 net::NetLog* net_log) |
| 95 : ignore_certificate_errors_(ignore_certificate_errors), | 94 : ignore_certificate_errors_(ignore_certificate_errors), |
| 96 base_path_(base_path), | 95 base_path_(base_path), |
| 97 io_task_runner_(std::move(io_task_runner)), | 96 io_task_runner_(std::move(io_task_runner)), |
| 98 net_log_(net_log), | 97 net_log_(net_log), |
| 99 request_interceptors_(std::move(request_interceptors)) { | 98 request_interceptors_(std::move(request_interceptors)) { |
| 100 // Must first be created on the UI thread. | 99 // Must first be created on the UI thread. |
| 101 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 100 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 scoped_refptr<base::SingleThreadTaskRunner> | 274 scoped_refptr<base::SingleThreadTaskRunner> |
| 276 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { | 275 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { |
| 277 return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); | 276 return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); |
| 278 } | 277 } |
| 279 | 278 |
| 280 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { | 279 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { |
| 281 return url_request_context_->host_resolver(); | 280 return url_request_context_->host_resolver(); |
| 282 } | 281 } |
| 283 | 282 |
| 284 } // namespace content | 283 } // namespace content |
| OLD | NEW |