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

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

Issue 1991653002: Move caching out of MultiThreadedCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: CrOS fixes 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/cert/caching_cert_verifier.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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 #include "ios/chrome/browser/chrome_switches.h" 37 #include "ios/chrome/browser/chrome_switches.h"
38 #include "ios/chrome/browser/net/cookie_util.h" 38 #include "ios/chrome/browser/net/cookie_util.h"
39 #include "ios/chrome/browser/net/ios_chrome_network_delegate.h" 39 #include "ios/chrome/browser/net/ios_chrome_network_delegate.h"
40 #include "ios/chrome/browser/net/proxy_service_factory.h" 40 #include "ios/chrome/browser/net/proxy_service_factory.h"
41 #include "ios/chrome/common/channel_info.h" 41 #include "ios/chrome/common/channel_info.h"
42 #include "ios/web/public/user_agent.h" 42 #include "ios/web/public/user_agent.h"
43 #include "ios/web/public/web_client.h" 43 #include "ios/web/public/web_client.h"
44 #include "ios/web/public/web_thread.h" 44 #include "ios/web/public/web_thread.h"
45 #include "net/base/sdch_manager.h" 45 #include "net/base/sdch_manager.h"
46 #include "net/cert/cert_verifier.h" 46 #include "net/cert/cert_verifier.h"
47 #include "net/cert/cert_verify_proc.h"
48 #include "net/cert/ct_known_logs.h" 47 #include "net/cert/ct_known_logs.h"
49 #include "net/cert/ct_log_verifier.h" 48 #include "net/cert/ct_log_verifier.h"
50 #include "net/cert/ct_policy_enforcer.h" 49 #include "net/cert/ct_policy_enforcer.h"
51 #include "net/cert/ct_verifier.h" 50 #include "net/cert/ct_verifier.h"
52 #include "net/cert/multi_log_ct_verifier.h" 51 #include "net/cert/multi_log_ct_verifier.h"
53 #include "net/cert/multi_threaded_cert_verifier.h" 52 #include "net/cert/multi_threaded_cert_verifier.h"
54 #include "net/cookies/cookie_monster.h" 53 #include "net/cookies/cookie_monster.h"
55 #include "net/cookies/cookie_store.h" 54 #include "net/cookies/cookie_store.h"
56 #include "net/dns/host_cache.h" 55 #include "net/dns/host_cache.h"
57 #include "net/dns/host_resolver.h" 56 #include "net/dns/host_resolver.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 340
342 std::map<std::string, std::string> network_quality_estimator_params; 341 std::map<std::string, std::string> network_quality_estimator_params;
343 variations::GetVariationParams(kNetworkQualityEstimatorFieldTrialName, 342 variations::GetVariationParams(kNetworkQualityEstimatorFieldTrialName,
344 &network_quality_estimator_params); 343 &network_quality_estimator_params);
345 344
346 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider; 345 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider;
347 // Pass ownership. 346 // Pass ownership.
348 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator( 347 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator(
349 std::move(external_estimate_provider), network_quality_estimator_params)); 348 std::move(external_estimate_provider), network_quality_estimator_params));
350 349
351 globals_->cert_verifier.reset( 350 globals_->cert_verifier = net::CertVerifier::CreateDefault();
352 new net::MultiThreadedCertVerifier(net::CertVerifyProc::CreateDefault()));
353 351
354 globals_->transport_security_state.reset(new net::TransportSecurityState()); 352 globals_->transport_security_state.reset(new net::TransportSecurityState());
355 353
356 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs( 354 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs(
357 net::ct::CreateLogVerifiersForKnownLogs()); 355 net::ct::CreateLogVerifiersForKnownLogs());
358 356
359 net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier(); 357 net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier();
360 globals_->cert_transparency_verifier.reset(ct_verifier); 358 globals_->cert_transparency_verifier.reset(ct_verifier);
361 // Add built-in logs 359 // Add built-in logs
362 ct_verifier->AddLogs(ct_logs); 360 ct_verifier->AddLogs(ct_logs);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 559
562 globals->system_http_network_session.reset( 560 globals->system_http_network_session.reset(
563 new net::HttpNetworkSession(system_params)); 561 new net::HttpNetworkSession(system_params));
564 globals->system_http_transaction_factory.reset( 562 globals->system_http_transaction_factory.reset(
565 new net::HttpNetworkLayer(globals->system_http_network_session.get())); 563 new net::HttpNetworkLayer(globals->system_http_network_session.get()));
566 context->set_http_transaction_factory( 564 context->set_http_transaction_factory(
567 globals->system_http_transaction_factory.get()); 565 globals->system_http_transaction_factory.get());
568 566
569 return context; 567 return context;
570 } 568 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/cert/caching_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698