| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/shell/shell_url_request_context_getter.h" | 5 #include "ios/web/shell/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/base_paths.h" | 10 #include "base/base_paths.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "net/proxy/proxy_service.h" | 31 #include "net/proxy/proxy_service.h" |
| 32 #include "net/ssl/channel_id_service.h" | 32 #include "net/ssl/channel_id_service.h" |
| 33 #include "net/ssl/default_channel_id_store.h" | 33 #include "net/ssl/default_channel_id_store.h" |
| 34 #include "net/ssl/ssl_config_service_defaults.h" | 34 #include "net/ssl/ssl_config_service_defaults.h" |
| 35 #include "net/url_request/data_protocol_handler.h" | 35 #include "net/url_request/data_protocol_handler.h" |
| 36 #include "net/url_request/static_http_user_agent_settings.h" | 36 #include "net/url_request/static_http_user_agent_settings.h" |
| 37 #include "net/url_request/url_request_context.h" | 37 #include "net/url_request/url_request_context.h" |
| 38 #include "net/url_request/url_request_context_storage.h" | 38 #include "net/url_request/url_request_context_storage.h" |
| 39 #include "net/url_request/url_request_job_factory_impl.h" | 39 #include "net/url_request/url_request_job_factory_impl.h" |
| 40 | 40 |
| 41 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 42 #error "This file requires ARC support." |
| 43 #endif |
| 44 |
| 41 namespace web { | 45 namespace web { |
| 42 | 46 |
| 43 ShellURLRequestContextGetter::ShellURLRequestContextGetter( | 47 ShellURLRequestContextGetter::ShellURLRequestContextGetter( |
| 44 const base::FilePath& base_path, | 48 const base::FilePath& base_path, |
| 45 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, | 49 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, |
| 46 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, | 50 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, |
| 47 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner) | 51 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner) |
| 48 : base_path_(base_path), | 52 : base_path_(base_path), |
| 49 file_task_runner_(file_task_runner), | 53 file_task_runner_(file_task_runner), |
| 50 network_task_runner_(network_task_runner), | 54 network_task_runner_(network_task_runner), |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 158 |
| 155 return url_request_context_.get(); | 159 return url_request_context_.get(); |
| 156 } | 160 } |
| 157 | 161 |
| 158 scoped_refptr<base::SingleThreadTaskRunner> | 162 scoped_refptr<base::SingleThreadTaskRunner> |
| 159 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { | 163 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { |
| 160 return network_task_runner_; | 164 return network_task_runner_; |
| 161 } | 165 } |
| 162 | 166 |
| 163 } // namespace web | 167 } // namespace web |
| OLD | NEW |