| 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_view/internal/criwv_url_request_context_getter.h" | 5 #include "ios/web_view/internal/criwv_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "net/proxy/proxy_service.h" | 29 #include "net/proxy/proxy_service.h" |
| 30 #include "net/ssl/channel_id_service.h" | 30 #include "net/ssl/channel_id_service.h" |
| 31 #include "net/ssl/default_channel_id_store.h" | 31 #include "net/ssl/default_channel_id_store.h" |
| 32 #include "net/ssl/ssl_config_service_defaults.h" | 32 #include "net/ssl/ssl_config_service_defaults.h" |
| 33 #include "net/url_request/data_protocol_handler.h" | 33 #include "net/url_request/data_protocol_handler.h" |
| 34 #include "net/url_request/static_http_user_agent_settings.h" | 34 #include "net/url_request/static_http_user_agent_settings.h" |
| 35 #include "net/url_request/url_request_context.h" | 35 #include "net/url_request/url_request_context.h" |
| 36 #include "net/url_request/url_request_context_storage.h" | 36 #include "net/url_request/url_request_context_storage.h" |
| 37 #include "net/url_request/url_request_job_factory_impl.h" | 37 #include "net/url_request/url_request_job_factory_impl.h" |
| 38 | 38 |
| 39 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 40 #error "This file requires ARC support." |
| 41 #endif |
| 42 |
| 39 namespace ios_web_view { | 43 namespace ios_web_view { |
| 40 | 44 |
| 41 CRIWVURLRequestContextGetter::CRIWVURLRequestContextGetter( | 45 CRIWVURLRequestContextGetter::CRIWVURLRequestContextGetter( |
| 42 const base::FilePath& base_path, | 46 const base::FilePath& base_path, |
| 43 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, | 47 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, |
| 44 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, | 48 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, |
| 45 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner) | 49 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner) |
| 46 : base_path_(base_path), | 50 : base_path_(base_path), |
| 47 file_task_runner_(file_task_runner), | 51 file_task_runner_(file_task_runner), |
| 48 network_task_runner_(network_task_runner), | 52 network_task_runner_(network_task_runner), |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 156 |
| 153 return url_request_context_.get(); | 157 return url_request_context_.get(); |
| 154 } | 158 } |
| 155 | 159 |
| 156 scoped_refptr<base::SingleThreadTaskRunner> | 160 scoped_refptr<base::SingleThreadTaskRunner> |
| 157 CRIWVURLRequestContextGetter::GetNetworkTaskRunner() const { | 161 CRIWVURLRequestContextGetter::GetNetworkTaskRunner() const { |
| 158 return network_task_runner_; | 162 return network_task_runner_; |
| 159 } | 163 } |
| 160 | 164 |
| 161 } // namespace ios_web_view | 165 } // namespace ios_web_view |
| OLD | NEW |