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 "chromecast/browser/url_request_context_factory.h" | 5 #include "chromecast/browser/url_request_context_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 ct_policy_enforcer_.reset(new IgnoresCTPolicyEnforcer()); | 240 ct_policy_enforcer_.reset(new IgnoresCTPolicyEnforcer()); |
241 | 241 |
242 http_auth_handler_factory_ = | 242 http_auth_handler_factory_ = |
243 net::HttpAuthHandlerFactory::CreateDefault(host_resolver_.get()); | 243 net::HttpAuthHandlerFactory::CreateDefault(host_resolver_.get()); |
244 | 244 |
245 // TODO(lcwu): http://crbug.com/392352. For performance reasons, | 245 // TODO(lcwu): http://crbug.com/392352. For performance reasons, |
246 // a persistent (on-disk) HttpServerProperties might be desirable | 246 // a persistent (on-disk) HttpServerProperties might be desirable |
247 // in the future. | 247 // in the future. |
248 http_server_properties_.reset(new net::HttpServerPropertiesImpl); | 248 http_server_properties_.reset(new net::HttpServerPropertiesImpl); |
249 | 249 |
| 250 DCHECK(proxy_config_service_); |
250 proxy_service_ = net::ProxyService::CreateUsingSystemProxyResolver( | 251 proxy_service_ = net::ProxyService::CreateUsingSystemProxyResolver( |
251 std::move(proxy_config_service_), 0, NULL); | 252 std::move(proxy_config_service_), 0, NULL); |
252 system_dependencies_initialized_ = true; | 253 system_dependencies_initialized_ = true; |
253 } | 254 } |
254 | 255 |
255 void URLRequestContextFactory::InitializeMainContextDependencies( | 256 void URLRequestContextFactory::InitializeMainContextDependencies( |
256 net::HttpTransactionFactory* transaction_factory, | 257 net::HttpTransactionFactory* transaction_factory, |
257 content::ProtocolHandlerMap* protocol_handlers, | 258 content::ProtocolHandlerMap* protocol_handlers, |
258 content::URLRequestInterceptorScopedVector request_interceptors) { | 259 content::URLRequestInterceptorScopedVector request_interceptors) { |
259 if (main_dependencies_initialized_) | 260 if (main_dependencies_initialized_) |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 if (media_getter_) { | 472 if (media_getter_) { |
472 media_getter_->GetURLRequestContext() | 473 media_getter_->GetURLRequestContext() |
473 ->http_transaction_factory() | 474 ->http_transaction_factory() |
474 ->GetSession() | 475 ->GetSession() |
475 ->DisableQuic(); | 476 ->DisableQuic(); |
476 } | 477 } |
477 } | 478 } |
478 | 479 |
479 } // namespace shell | 480 } // namespace shell |
480 } // namespace chromecast | 481 } // namespace chromecast |
OLD | NEW |