| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 | 545 |
| 546 context->set_cookie_store(globals->system_cookie_store.get()); | 546 context->set_cookie_store(globals->system_cookie_store.get()); |
| 547 context->set_channel_id_service(globals->system_channel_id_service.get()); | 547 context->set_channel_id_service(globals->system_channel_id_service.get()); |
| 548 context->set_network_delegate(globals->system_network_delegate.get()); | 548 context->set_network_delegate(globals->system_network_delegate.get()); |
| 549 context->set_http_user_agent_settings( | 549 context->set_http_user_agent_settings( |
| 550 globals->http_user_agent_settings.get()); | 550 globals->http_user_agent_settings.get()); |
| 551 context->set_network_quality_estimator( | 551 context->set_network_quality_estimator( |
| 552 globals->network_quality_estimator.get()); | 552 globals->network_quality_estimator.get()); |
| 553 context->set_backoff_manager(globals->url_request_backoff_manager.get()); | 553 context->set_backoff_manager(globals->url_request_backoff_manager.get()); |
| 554 | 554 |
| 555 context->set_http_server_properties( | 555 context->set_http_server_properties(globals->http_server_properties.get()); |
| 556 globals->http_server_properties->GetWeakPtr()); | |
| 557 | 556 |
| 558 net::HttpNetworkSession::Params system_params(params); | 557 net::HttpNetworkSession::Params system_params(params); |
| 559 net::URLRequestContextBuilder::SetHttpNetworkSessionComponents( | 558 net::URLRequestContextBuilder::SetHttpNetworkSessionComponents( |
| 560 context, &system_params); | 559 context, &system_params); |
| 561 | 560 |
| 562 globals->system_http_network_session.reset( | 561 globals->system_http_network_session.reset( |
| 563 new net::HttpNetworkSession(system_params)); | 562 new net::HttpNetworkSession(system_params)); |
| 564 globals->system_http_transaction_factory.reset( | 563 globals->system_http_transaction_factory.reset( |
| 565 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 564 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
| 566 context->set_http_transaction_factory( | 565 context->set_http_transaction_factory( |
| 567 globals->system_http_transaction_factory.get()); | 566 globals->system_http_transaction_factory.get()); |
| 568 | 567 |
| 569 return context; | 568 return context; |
| 570 } | 569 } |
| OLD | NEW |