Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: ios/components/io_thread/ios_io_thread.mm

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Response to comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698