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

Side by Side Diff: ios/chrome/browser/ios_chrome_io_thread.cc

Issue 1440643002: Certificate Transparency: Per-profile CT verification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing iOS compilation Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/cert/ct_known_logs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 scoped_ptr<net::ExternalEstimateProvider> external_estimate_provider; 388 scoped_ptr<net::ExternalEstimateProvider> external_estimate_provider;
389 // Pass ownership. 389 // Pass ownership.
390 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator( 390 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator(
391 external_estimate_provider.Pass(), network_quality_estimator_params)); 391 external_estimate_provider.Pass(), network_quality_estimator_params));
392 392
393 globals_->cert_verifier.reset( 393 globals_->cert_verifier.reset(
394 new net::MultiThreadedCertVerifier(net::CertVerifyProc::CreateDefault())); 394 new net::MultiThreadedCertVerifier(net::CertVerifyProc::CreateDefault()));
395 395
396 globals_->transport_security_state.reset(new net::TransportSecurityState()); 396 globals_->transport_security_state.reset(new net::TransportSecurityState());
397 397
398 std::vector<scoped_refptr<net::CTLogVerifier>> ct_logs( 398 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs(
399 net::ct::CreateLogVerifiersForKnownLogs()); 399 net::ct::CreateLogVerifiersForKnownLogs());
400 400
401 net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier(); 401 net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier();
402 globals_->cert_transparency_verifier.reset(ct_verifier); 402 globals_->cert_transparency_verifier.reset(ct_verifier);
403 // Add built-in logs 403 // Add built-in logs
404 ct_verifier->AddLogs(ct_logs); 404 ct_verifier->AddLogs(ct_logs);
405 405
406 net::CertPolicyEnforcer* policy_enforcer = new net::CertPolicyEnforcer; 406 net::CertPolicyEnforcer* policy_enforcer = new net::CertPolicyEnforcer;
407 globals_->cert_policy_enforcer.reset(policy_enforcer); 407 globals_->cert_policy_enforcer.reset(policy_enforcer);
408 408
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 1012
1013 globals->system_http_network_session.reset( 1013 globals->system_http_network_session.reset(
1014 new net::HttpNetworkSession(system_params)); 1014 new net::HttpNetworkSession(system_params));
1015 globals->system_http_transaction_factory.reset( 1015 globals->system_http_transaction_factory.reset(
1016 new net::HttpNetworkLayer(globals->system_http_network_session.get())); 1016 new net::HttpNetworkLayer(globals->system_http_network_session.get()));
1017 context->set_http_transaction_factory( 1017 context->set_http_transaction_factory(
1018 globals->system_http_transaction_factory.get()); 1018 globals->system_http_transaction_factory.get());
1019 1019
1020 return context; 1020 return context;
1021 } 1021 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/cert/ct_known_logs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698