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