OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 dnsrr_resolver_ = new net::DnsRRResolver; | 64 dnsrr_resolver_ = new net::DnsRRResolver; |
65 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); | 65 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); |
66 ssl_config_service_ = new net::SSLConfigServiceDefaults; | 66 ssl_config_service_ = new net::SSLConfigServiceDefaults; |
67 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( | 67 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( |
68 host_resolver_); | 68 host_resolver_); |
69 http_transaction_factory_ = new net::HttpCache( | 69 http_transaction_factory_ = new net::HttpCache( |
70 net::HttpNetworkLayer::CreateFactory(host_resolver_, cert_verifier_, | 70 net::HttpNetworkLayer::CreateFactory(host_resolver_, cert_verifier_, |
71 dnsrr_resolver_, NULL /* dns_cert_checker */, | 71 dnsrr_resolver_, NULL /* dns_cert_checker */, |
72 NULL /* ssl_host_info_factory */, proxy_service_, | 72 NULL /* ssl_host_info_factory */, proxy_service_, |
73 ssl_config_service_, http_auth_handler_factory_, NULL, NULL), | 73 ssl_config_service_, http_auth_handler_factory_, NULL, NULL), |
74 NULL /* net_log */, | |
75 net::HttpCache::DefaultBackend::InMemory(0)); | 74 net::HttpCache::DefaultBackend::InMemory(0)); |
76 // In-memory cookie store. | 75 // In-memory cookie store. |
77 cookie_store_ = new net::CookieMonster(NULL, NULL); | 76 cookie_store_ = new net::CookieMonster(NULL, NULL); |
78 | 77 |
79 return net::OK; | 78 return net::OK; |
80 } | 79 } |
81 | 80 |
82 protected: | 81 protected: |
83 virtual ~ExperimentURLRequestContext() { | 82 virtual ~ExperimentURLRequestContext() { |
84 delete ftp_transaction_factory_; | 83 delete ftp_transaction_factory_; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 421 |
423 // Notify the delegate of completion. | 422 // Notify the delegate of completion. |
424 delegate_->OnCompletedConnectionTestExperiment(current, result); | 423 delegate_->OnCompletedConnectionTestExperiment(current, result); |
425 | 424 |
426 if (remaining_experiments_.empty()) { | 425 if (remaining_experiments_.empty()) { |
427 delegate_->OnCompletedConnectionTestSuite(); | 426 delegate_->OnCompletedConnectionTestSuite(); |
428 } else { | 427 } else { |
429 StartNextExperiment(); | 428 StartNextExperiment(); |
430 } | 429 } |
431 } | 430 } |
OLD | NEW |