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

Side by Side Diff: chrome/browser/net/connection_tester.cc

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Two header fixes Created 8 years, 9 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 | Annotate | Revision Log
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/net/connection_tester.h" 5 #include "chrome/browser/net/connection_tester.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Create a custom ProxyService for this this experiment. 62 // Create a custom ProxyService for this this experiment.
63 scoped_ptr<net::ProxyService> proxy_service_tmp; 63 scoped_ptr<net::ProxyService> proxy_service_tmp;
64 rv = CreateProxyService(experiment.proxy_settings_experiment, 64 rv = CreateProxyService(experiment.proxy_settings_experiment,
65 &proxy_service_tmp); 65 &proxy_service_tmp);
66 if (rv != net::OK) 66 if (rv != net::OK)
67 return rv; // Failure. 67 return rv; // Failure.
68 storage_.set_proxy_service(proxy_service_tmp.release()); 68 storage_.set_proxy_service(proxy_service_tmp.release());
69 69
70 // The rest of the dependencies are standard, and don't depend on the 70 // The rest of the dependencies are standard, and don't depend on the
71 // experiment being run. 71 // experiment being run.
72 storage_.set_cert_verifier(new net::CertVerifier); 72 storage_.set_cert_verifier(net::CertVerifier::CreateDefaultCertVerifier());
73 storage_.set_ftp_transaction_factory( 73 storage_.set_ftp_transaction_factory(
74 new net::FtpNetworkLayer(host_resolver())); 74 new net::FtpNetworkLayer(host_resolver()));
75 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults); 75 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults);
76 storage_.set_http_auth_handler_factory( 76 storage_.set_http_auth_handler_factory(
77 net::HttpAuthHandlerFactory::CreateDefault(host_resolver())); 77 net::HttpAuthHandlerFactory::CreateDefault(host_resolver()));
78 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl); 78 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl);
79 79
80 net::HttpNetworkSession::Params session_params; 80 net::HttpNetworkSession::Params session_params;
81 session_params.host_resolver = host_resolver(); 81 session_params.host_resolver = host_resolver();
82 session_params.cert_verifier = cert_verifier(); 82 session_params.cert_verifier = cert_verifier();
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 // Notify the delegate of completion. 462 // Notify the delegate of completion.
463 delegate_->OnCompletedConnectionTestExperiment(current, result); 463 delegate_->OnCompletedConnectionTestExperiment(current, result);
464 464
465 if (remaining_experiments_.empty()) { 465 if (remaining_experiments_.empty()) {
466 delegate_->OnCompletedConnectionTestSuite(); 466 delegate_->OnCompletedConnectionTestSuite();
467 } else { 467 } else {
468 StartNextExperiment(); 468 StartNextExperiment();
469 } 469 }
470 } 470 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698