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

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

Issue 2067843003: Require a CTVerifier and CTPolicyEnforcer for TLS/QUIC sockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup Created 4 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 monitor->SetDiscardUploads(!GetMetricsEnabledStateOnIOThread()); 454 monitor->SetDiscardUploads(!GetMetricsEnabledStateOnIOThread());
455 chrome_network_delegate->set_domain_reliability_monitor(monitor); 455 chrome_network_delegate->set_domain_reliability_monitor(monitor);
456 } 456 }
457 457
458 ApplyProfileParamsToContext(main_context); 458 ApplyProfileParamsToContext(main_context);
459 459
460 if (http_server_properties_manager_) 460 if (http_server_properties_manager_)
461 http_server_properties_manager_->InitializeOnNetworkThread(); 461 http_server_properties_manager_->InitializeOnNetworkThread();
462 462
463 main_context->set_transport_security_state(transport_security_state()); 463 main_context->set_transport_security_state(transport_security_state());
464 main_context->set_ct_policy_enforcer(
465 io_thread_globals->ct_policy_enforcer.get());
464 466
465 main_context->set_net_log(io_thread->net_log()); 467 main_context->set_net_log(io_thread->net_log());
466 468
467 network_delegate_ = data_reduction_proxy_io_data()->CreateNetworkDelegate( 469 network_delegate_ = data_reduction_proxy_io_data()->CreateNetworkDelegate(
468 std::move(chrome_network_delegate), true); 470 std::move(chrome_network_delegate), true);
469 471
470 main_context->set_network_delegate(network_delegate_.get()); 472 main_context->set_network_delegate(network_delegate_.get());
471 473
472 main_context->set_http_server_properties(http_server_properties()); 474 main_context->set_http_server_properties(http_server_properties());
473 475
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 571 }
570 572
571 void ProfileImplIOData:: 573 void ProfileImplIOData::
572 InitializeExtensionsRequestContext(ProfileParams* profile_params) const { 574 InitializeExtensionsRequestContext(ProfileParams* profile_params) const {
573 net::URLRequestContext* extensions_context = extensions_request_context(); 575 net::URLRequestContext* extensions_context = extensions_request_context();
574 IOThread* const io_thread = profile_params->io_thread; 576 IOThread* const io_thread = profile_params->io_thread;
575 IOThread::Globals* const io_thread_globals = io_thread->globals(); 577 IOThread::Globals* const io_thread_globals = io_thread->globals();
576 ApplyProfileParamsToContext(extensions_context); 578 ApplyProfileParamsToContext(extensions_context);
577 579
578 extensions_context->set_transport_security_state(transport_security_state()); 580 extensions_context->set_transport_security_state(transport_security_state());
581 extensions_context->set_ct_policy_enforcer(
582 io_thread_globals->ct_policy_enforcer.get());
579 583
580 extensions_context->set_net_log(io_thread->net_log()); 584 extensions_context->set_net_log(io_thread->net_log());
581 585
582 content::CookieStoreConfig cookie_config( 586 content::CookieStoreConfig cookie_config(
583 lazy_params_->extensions_cookie_path, 587 lazy_params_->extensions_cookie_path,
584 lazy_params_->session_cookie_mode, 588 lazy_params_->session_cookie_mode,
585 NULL, NULL); 589 NULL, NULL);
586 cookie_config.crypto_delegate = cookie_config::GetCookieCryptoDelegate(); 590 cookie_config.crypto_delegate = cookie_config::GetCookieCryptoDelegate();
587 // Enable cookies for chrome-extension URLs. 591 // Enable cookies for chrome-extension URLs.
588 cookie_config.cookieable_schemes.push_back(extensions::kExtensionScheme); 592 cookie_config.cookieable_schemes.push_back(extensions::kExtensionScheme);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 const base::Closure& completion) { 794 const base::Closure& completion) {
791 DCHECK_CURRENTLY_ON(BrowserThread::IO); 795 DCHECK_CURRENTLY_ON(BrowserThread::IO);
792 DCHECK(initialized()); 796 DCHECK(initialized());
793 797
794 DCHECK(transport_security_state()); 798 DCHECK(transport_security_state());
795 // Completes synchronously. 799 // Completes synchronously.
796 transport_security_state()->DeleteAllDynamicDataSince(time); 800 transport_security_state()->DeleteAllDynamicDataSince(time);
797 DCHECK(http_server_properties_manager_); 801 DCHECK(http_server_properties_manager_);
798 http_server_properties_manager_->Clear(completion); 802 http_server_properties_manager_->Clear(completion);
799 } 803 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698