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 <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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 url_request_context_->transport_security_state(); | 117 url_request_context_->transport_security_state(); |
118 network_session_params.channel_id_service = | 118 network_session_params.channel_id_service = |
119 url_request_context_->channel_id_service(); | 119 url_request_context_->channel_id_service(); |
120 network_session_params.net_log = url_request_context_->net_log(); | 120 network_session_params.net_log = url_request_context_->net_log(); |
121 network_session_params.proxy_service = | 121 network_session_params.proxy_service = |
122 url_request_context_->proxy_service(); | 122 url_request_context_->proxy_service(); |
123 network_session_params.ssl_config_service = | 123 network_session_params.ssl_config_service = |
124 url_request_context_->ssl_config_service(); | 124 url_request_context_->ssl_config_service(); |
125 network_session_params.http_auth_handler_factory = | 125 network_session_params.http_auth_handler_factory = |
126 url_request_context_->http_auth_handler_factory(); | 126 url_request_context_->http_auth_handler_factory(); |
127 network_session_params.network_delegate = network_delegate_.get(); | |
128 network_session_params.http_server_properties = | 127 network_session_params.http_server_properties = |
129 url_request_context_->http_server_properties(); | 128 url_request_context_->http_server_properties(); |
130 network_session_params.host_resolver = | 129 network_session_params.host_resolver = |
131 url_request_context_->host_resolver(); | 130 url_request_context_->host_resolver(); |
132 | 131 |
133 base::FilePath cache_path = base_path_.Append(FILE_PATH_LITERAL("Cache")); | 132 base::FilePath cache_path = base_path_.Append(FILE_PATH_LITERAL("Cache")); |
134 scoped_ptr<net::HttpCache::DefaultBackend> main_backend( | 133 scoped_ptr<net::HttpCache::DefaultBackend> main_backend( |
135 new net::HttpCache::DefaultBackend(net::DISK_CACHE, | 134 new net::HttpCache::DefaultBackend(net::DISK_CACHE, |
136 net::CACHE_BACKEND_DEFAULT, | 135 net::CACHE_BACKEND_DEFAULT, |
137 cache_path, 0, cache_task_runner_)); | 136 cache_path, 0, cache_task_runner_)); |
(...skipping 15 matching lines...) Expand all Loading... |
153 | 152 |
154 return url_request_context_.get(); | 153 return url_request_context_.get(); |
155 } | 154 } |
156 | 155 |
157 scoped_refptr<base::SingleThreadTaskRunner> | 156 scoped_refptr<base::SingleThreadTaskRunner> |
158 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { | 157 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { |
159 return network_task_runner_; | 158 return network_task_runner_; |
160 } | 159 } |
161 | 160 |
162 } // namespace web | 161 } // namespace web |
OLD | NEW |