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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 2910643003: Move more SystemURLRequestContext members into its ContextStorage (Closed)
Patch Set: Response 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 std::move(lazy_params_->http_server_properties_manager)); 477 std::move(lazy_params_->http_server_properties_manager));
478 } 478 }
479 479
480 main_context->set_transport_security_state(transport_security_state()); 480 main_context->set_transport_security_state(transport_security_state());
481 main_context->set_ct_policy_enforcer( 481 main_context->set_ct_policy_enforcer(
482 io_thread_globals->system_request_context->ct_policy_enforcer()); 482 io_thread_globals->system_request_context->ct_policy_enforcer());
483 483
484 main_context->set_net_log(io_thread->net_log()); 484 main_context->set_net_log(io_thread->net_log());
485 485
486 main_context->set_http_auth_handler_factory( 486 main_context->set_http_auth_handler_factory(
487 io_thread_globals->http_auth_handler_factory.get()); 487 io_thread_globals->system_request_context->http_auth_handler_factory());
488 488
489 main_context->set_proxy_service(proxy_service()); 489 main_context->set_proxy_service(proxy_service());
490 490
491 // Create a single task runner to use with the CookieStore and ChannelIDStore. 491 // Create a single task runner to use with the CookieStore and ChannelIDStore.
492 scoped_refptr<base::SequencedTaskRunner> cookie_background_task_runner = 492 scoped_refptr<base::SequencedTaskRunner> cookie_background_task_runner =
493 base::CreateSequencedTaskRunnerWithTraits( 493 base::CreateSequencedTaskRunnerWithTraits(
494 {base::MayBlock(), base::TaskPriority::BACKGROUND, 494 {base::MayBlock(), base::TaskPriority::BACKGROUND,
495 base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); 495 base::TaskShutdownBehavior::BLOCK_SHUTDOWN});
496 496
497 // Set up server bound cert service. 497 // Set up server bound cert service.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // as possible. 545 // as possible.
546 request_interceptors.insert( 546 request_interceptors.insert(
547 request_interceptors.begin(), 547 request_interceptors.begin(),
548 data_reduction_proxy_io_data()->CreateInterceptor()); 548 data_reduction_proxy_io_data()->CreateInterceptor());
549 data_reduction_proxy_io_data()->SetDataUseAscriber( 549 data_reduction_proxy_io_data()->SetDataUseAscriber(
550 io_thread_globals->data_use_ascriber.get()); 550 io_thread_globals->data_use_ascriber.get());
551 main_context_storage->set_job_factory(SetUpJobFactoryDefaults( 551 main_context_storage->set_job_factory(SetUpJobFactoryDefaults(
552 std::move(main_job_factory), std::move(request_interceptors), 552 std::move(main_job_factory), std::move(request_interceptors),
553 std::move(profile_params->protocol_handler_interceptor), 553 std::move(profile_params->protocol_handler_interceptor),
554 main_context->network_delegate(), 554 main_context->network_delegate(),
555 io_thread_globals->host_resolver.get())); 555 io_thread_globals->system_request_context->host_resolver()));
556 main_context->set_network_quality_estimator( 556 main_context->set_network_quality_estimator(
557 io_thread_globals->network_quality_estimator.get()); 557 io_thread_globals->network_quality_estimator.get());
558 558
559 #if BUILDFLAG(ENABLE_EXTENSIONS) 559 #if BUILDFLAG(ENABLE_EXTENSIONS)
560 InitializeExtensionsRequestContext(profile_params); 560 InitializeExtensionsRequestContext(profile_params);
561 #endif 561 #endif
562 562
563 main_context_storage->set_reporting_service( 563 main_context_storage->set_reporting_service(
564 MaybeCreateReportingService(main_context)); 564 MaybeCreateReportingService(main_context));
565 565
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 const base::Closure& completion) { 795 const base::Closure& completion) {
796 DCHECK_CURRENTLY_ON(BrowserThread::IO); 796 DCHECK_CURRENTLY_ON(BrowserThread::IO);
797 DCHECK(initialized()); 797 DCHECK(initialized());
798 798
799 DCHECK(transport_security_state()); 799 DCHECK(transport_security_state());
800 // Completes synchronously. 800 // Completes synchronously.
801 transport_security_state()->DeleteAllDynamicDataSince(time); 801 transport_security_state()->DeleteAllDynamicDataSince(time);
802 DCHECK(http_server_properties_manager_); 802 DCHECK(http_server_properties_manager_);
803 http_server_properties_manager_->Clear(completion); 803 http_server_properties_manager_->Clear(completion);
804 } 804 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698