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 */, |
74 net::HttpCache::DefaultBackend::InMemory(0)); | 75 net::HttpCache::DefaultBackend::InMemory(0)); |
75 // In-memory cookie store. | 76 // In-memory cookie store. |
76 cookie_store_ = new net::CookieMonster(NULL, NULL); | 77 cookie_store_ = new net::CookieMonster(NULL, NULL); |
77 | 78 |
78 return net::OK; | 79 return net::OK; |
79 } | 80 } |
80 | 81 |
81 protected: | 82 protected: |
82 virtual ~ExperimentURLRequestContext() { | 83 virtual ~ExperimentURLRequestContext() { |
83 delete ftp_transaction_factory_; | 84 delete ftp_transaction_factory_; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 422 |
422 // Notify the delegate of completion. | 423 // Notify the delegate of completion. |
423 delegate_->OnCompletedConnectionTestExperiment(current, result); | 424 delegate_->OnCompletedConnectionTestExperiment(current, result); |
424 | 425 |
425 if (remaining_experiments_.empty()) { | 426 if (remaining_experiments_.empty()) { |
426 delegate_->OnCompletedConnectionTestSuite(); | 427 delegate_->OnCompletedConnectionTestSuite(); |
427 } else { | 428 } else { |
428 StartNextExperiment(); | 429 StartNextExperiment(); |
429 } | 430 } |
430 } | 431 } |
OLD | NEW |