Chromium Code Reviews| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 403 params_.enable_user_alternate_protocol_ports = false; | 403 params_.enable_user_alternate_protocol_ports = false; |
| 404 | 404 |
| 405 std::string quic_user_agent_id = ::GetChannelString(); | 405 std::string quic_user_agent_id = ::GetChannelString(); |
| 406 if (!quic_user_agent_id.empty()) | 406 if (!quic_user_agent_id.empty()) |
| 407 quic_user_agent_id.push_back(' '); | 407 quic_user_agent_id.push_back(' '); |
| 408 quic_user_agent_id.append( | 408 quic_user_agent_id.append( |
| 409 version_info::GetProductNameAndVersionForUserAgent()); | 409 version_info::GetProductNameAndVersionForUserAgent()); |
| 410 quic_user_agent_id.push_back(' '); | 410 quic_user_agent_id.push_back(' '); |
| 411 quic_user_agent_id.append(web::BuildOSCpuInfo()); | 411 quic_user_agent_id.append(web::BuildOSCpuInfo()); |
| 412 | 412 |
| 413 globals_->http_network_session_dynamic_shared_params.reset( | |
|
Bence
2016/12/20 14:58:07
= base::MakeUnique
pmarko
2016/12/20 18:00:37
Done.
| |
| 414 new net::HttpNetworkSession::DynamicSharedParams()); | |
| 415 params_.dynamic_shared_params = | |
| 416 globals_->http_network_session_dynamic_shared_params.get(); | |
| 417 | |
| 413 network_session_configurator::ParseFieldTrials( | 418 network_session_configurator::ParseFieldTrials( |
| 414 /*is_quic_force_disabled=*/false, | 419 /*is_quic_force_disabled=*/false, |
| 415 /*is_quic_force_enabled=*/false, quic_user_agent_id, ¶ms_); | 420 /*is_quic_force_enabled=*/false, quic_user_agent_id, ¶ms_); |
| 416 | 421 |
| 417 // InitSystemRequestContext turns right around and posts a task back | 422 // InitSystemRequestContext turns right around and posts a task back |
| 418 // to the IO thread, so we can't let it run until we know the IO | 423 // to the IO thread, so we can't let it run until we know the IO |
| 419 // thread has started. | 424 // thread has started. |
| 420 // | 425 // |
| 421 // Note that since we are at WebThread::Init time, the UI thread | 426 // Note that since we are at WebThread::Init time, the UI thread |
| 422 // is blocked waiting for the thread to start. Therefore, posting | 427 // is blocked waiting for the thread to start. Therefore, posting |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 567 | 572 |
| 568 globals->system_http_network_session.reset( | 573 globals->system_http_network_session.reset( |
| 569 new net::HttpNetworkSession(system_params)); | 574 new net::HttpNetworkSession(system_params)); |
| 570 globals->system_http_transaction_factory.reset( | 575 globals->system_http_transaction_factory.reset( |
| 571 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 576 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
| 572 context->set_http_transaction_factory( | 577 context->set_http_transaction_factory( |
| 573 globals->system_http_transaction_factory.get()); | 578 globals->system_http_transaction_factory.get()); |
| 574 | 579 |
| 575 return context; | 580 return context; |
| 576 } | 581 } |
| OLD | NEW |