OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chrome/browser/ios_chrome_io_thread.h" | 5 #include "ios/chrome/browser/ios_chrome_io_thread.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 ct_verifier->AddLogs(ct_logs); | 422 ct_verifier->AddLogs(ct_logs); |
423 | 423 |
424 net::CTPolicyEnforcer* policy_enforcer = new net::CTPolicyEnforcer; | 424 net::CTPolicyEnforcer* policy_enforcer = new net::CTPolicyEnforcer; |
425 globals_->ct_policy_enforcer.reset(policy_enforcer); | 425 globals_->ct_policy_enforcer.reset(policy_enforcer); |
426 | 426 |
427 globals_->ssl_config_service = GetSSLConfigService(); | 427 globals_->ssl_config_service = GetSSLConfigService(); |
428 | 428 |
429 CreateDefaultAuthHandlerFactory(); | 429 CreateDefaultAuthHandlerFactory(); |
430 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl()); | 430 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl()); |
431 // In-memory cookie store. | 431 // In-memory cookie store. |
432 globals_->system_cookie_store = new net::CookieMonster(nullptr, nullptr); | 432 globals_->system_cookie_store.reset(new net::CookieMonster(nullptr, nullptr)); |
433 // In-memory channel ID store. | 433 // In-memory channel ID store. |
434 globals_->system_channel_id_service.reset( | 434 globals_->system_channel_id_service.reset( |
435 new net::ChannelIDService(new net::DefaultChannelIDStore(nullptr), | 435 new net::ChannelIDService(new net::DefaultChannelIDStore(nullptr), |
436 base::WorkerPool::GetTaskRunner(true))); | 436 base::WorkerPool::GetTaskRunner(true))); |
437 globals_->http_user_agent_settings.reset(new net::StaticHttpUserAgentSettings( | 437 globals_->http_user_agent_settings.reset(new net::StaticHttpUserAgentSettings( |
438 std::string(), web::GetWebClient()->GetUserAgent(false))); | 438 std::string(), web::GetWebClient()->GetUserAgent(false))); |
439 if (command_line.HasSwitch(switches::kIOSTestingFixedHttpPort)) { | 439 if (command_line.HasSwitch(switches::kIOSTestingFixedHttpPort)) { |
440 globals_->testing_fixed_http_port = | 440 globals_->testing_fixed_http_port = |
441 GetSwitchValueAsInt(command_line, switches::kIOSTestingFixedHttpPort); | 441 GetSwitchValueAsInt(command_line, switches::kIOSTestingFixedHttpPort); |
442 } | 442 } |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 | 1044 |
1045 globals->system_http_network_session.reset( | 1045 globals->system_http_network_session.reset( |
1046 new net::HttpNetworkSession(system_params)); | 1046 new net::HttpNetworkSession(system_params)); |
1047 globals->system_http_transaction_factory.reset( | 1047 globals->system_http_transaction_factory.reset( |
1048 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 1048 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
1049 context->set_http_transaction_factory( | 1049 context->set_http_transaction_factory( |
1050 globals->system_http_transaction_factory.get()); | 1050 globals->system_http_transaction_factory.get()); |
1051 | 1051 |
1052 return context; | 1052 return context; |
1053 } | 1053 } |
OLD | NEW |