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/crnet/crnet_environment.h" | 5 #include "ios/crnet/crnet_environment.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 network_cache_thread_->task_runner())); | 431 network_cache_thread_->task_runner())); |
432 | 432 |
433 net::HttpNetworkSession::Params params; | 433 net::HttpNetworkSession::Params params; |
434 params.host_resolver = main_context_->host_resolver(); | 434 params.host_resolver = main_context_->host_resolver(); |
435 params.cert_verifier = main_context_->cert_verifier(); | 435 params.cert_verifier = main_context_->cert_verifier(); |
436 params.channel_id_service = main_context_->channel_id_service(); | 436 params.channel_id_service = main_context_->channel_id_service(); |
437 params.transport_security_state = main_context_->transport_security_state(); | 437 params.transport_security_state = main_context_->transport_security_state(); |
438 params.proxy_service = main_context_->proxy_service(); | 438 params.proxy_service = main_context_->proxy_service(); |
439 params.ssl_config_service = main_context_->ssl_config_service(); | 439 params.ssl_config_service = main_context_->ssl_config_service(); |
440 params.http_auth_handler_factory = main_context_->http_auth_handler_factory(); | 440 params.http_auth_handler_factory = main_context_->http_auth_handler_factory(); |
441 params.network_delegate = main_context_->network_delegate(); | |
442 params.http_server_properties = main_context_->http_server_properties(); | 441 params.http_server_properties = main_context_->http_server_properties(); |
443 params.net_log = main_context_->net_log(); | 442 params.net_log = main_context_->net_log(); |
444 params.enable_spdy31 = spdy_enabled(); | 443 params.enable_spdy31 = spdy_enabled(); |
445 params.enable_http2 = spdy_enabled(); | 444 params.enable_http2 = spdy_enabled(); |
446 params.parse_alternative_services = false; | 445 params.parse_alternative_services = false; |
447 params.enable_quic = quic_enabled(); | 446 params.enable_quic = quic_enabled(); |
448 params.alternative_service_probability_threshold = | 447 params.alternative_service_probability_threshold = |
449 alternate_protocol_threshold_; | 448 alternate_protocol_threshold_; |
450 | 449 |
451 if (!params.channel_id_service) { | 450 if (!params.channel_id_service) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 492 |
494 return user_agent_settings->GetUserAgent(); | 493 return user_agent_settings->GetUserAgent(); |
495 } | 494 } |
496 | 495 |
497 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) { | 496 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) { |
498 PostToNetworkThread( | 497 PostToNetworkThread( |
499 FROM_HERE, | 498 FROM_HERE, |
500 base::Bind(&net::ClearHttpCache, main_context_getter_, | 499 base::Bind(&net::ClearHttpCache, main_context_getter_, |
501 network_io_thread_->task_runner(), base::BindBlock(callback))); | 500 network_io_thread_->task_runner(), base::BindBlock(callback))); |
502 } | 501 } |
OLD | NEW |