| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/components/io_thread/ios_io_thread.h" | 5 #include "ios/components/io_thread/ios_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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 context->set_cookie_store(globals->system_cookie_store.get()); | 506 context->set_cookie_store(globals->system_cookie_store.get()); |
| 507 context->set_channel_id_service(globals->system_channel_id_service.get()); | 507 context->set_channel_id_service(globals->system_channel_id_service.get()); |
| 508 context->set_network_delegate(globals->system_network_delegate.get()); | 508 context->set_network_delegate(globals->system_network_delegate.get()); |
| 509 context->set_http_user_agent_settings( | 509 context->set_http_user_agent_settings( |
| 510 globals->http_user_agent_settings.get()); | 510 globals->http_user_agent_settings.get()); |
| 511 context->set_network_quality_estimator( | 511 context->set_network_quality_estimator( |
| 512 globals->network_quality_estimator.get()); | 512 globals->network_quality_estimator.get()); |
| 513 | 513 |
| 514 context->set_http_server_properties(globals->http_server_properties.get()); | 514 context->set_http_server_properties(globals->http_server_properties.get()); |
| 515 | 515 |
| 516 net::HttpNetworkSession::Params system_params(params); | 516 net::HttpNetworkSession::Context system_context; |
| 517 net::URLRequestContextBuilder::SetHttpNetworkSessionComponents( | 517 net::URLRequestContextBuilder::SetHttpNetworkSessionComponents( |
| 518 context, &system_params); | 518 context, &system_context); |
| 519 | 519 |
| 520 globals->system_http_network_session.reset( | 520 globals->system_http_network_session.reset( |
| 521 new net::HttpNetworkSession(system_params)); | 521 new net::HttpNetworkSession(params, system_context)); |
| 522 globals->system_http_transaction_factory.reset( | 522 globals->system_http_transaction_factory.reset( |
| 523 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 523 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
| 524 context->set_http_transaction_factory( | 524 context->set_http_transaction_factory( |
| 525 globals->system_http_transaction_factory.get()); | 525 globals->system_http_transaction_factory.get()); |
| 526 | 526 |
| 527 return context; | 527 return context; |
| 528 } | 528 } |
| 529 | 529 |
| 530 } // namespace io_thread | 530 } // namespace io_thread |
| OLD | NEW |