| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // The rest of the dependencies are standard, and don't depend on the | 55 // The rest of the dependencies are standard, and don't depend on the |
| 56 // experiment being run. | 56 // experiment being run. |
| 57 dnsrr_resolver_ = new net::DnsRRResolver; | 57 dnsrr_resolver_ = new net::DnsRRResolver; |
| 58 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); | 58 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); |
| 59 ssl_config_service_ = new net::SSLConfigServiceDefaults; | 59 ssl_config_service_ = new net::SSLConfigServiceDefaults; |
| 60 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( | 60 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( |
| 61 host_resolver_); | 61 host_resolver_); |
| 62 http_transaction_factory_ = new net::HttpCache( | 62 http_transaction_factory_ = new net::HttpCache( |
| 63 net::HttpNetworkLayer::CreateFactory(host_resolver_, dnsrr_resolver_, | 63 net::HttpNetworkLayer::CreateFactory(host_resolver_, dnsrr_resolver_, |
| 64 proxy_service_, ssl_config_service_, http_auth_handler_factory_, | 64 NULL /* ssl_host_info_factory */, proxy_service_, |
| 65 NULL, NULL), | 65 ssl_config_service_, http_auth_handler_factory_, NULL, NULL), |
| 66 net::HttpCache::DefaultBackend::InMemory(0)); | 66 net::HttpCache::DefaultBackend::InMemory(0)); |
| 67 // In-memory cookie store. | 67 // In-memory cookie store. |
| 68 cookie_store_ = new net::CookieMonster(NULL, NULL); | 68 cookie_store_ = new net::CookieMonster(NULL, NULL); |
| 69 | 69 |
| 70 return net::OK; | 70 return net::OK; |
| 71 } | 71 } |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 virtual ~ExperimentURLRequestContext() { | 74 virtual ~ExperimentURLRequestContext() { |
| 75 delete ftp_transaction_factory_; | 75 delete ftp_transaction_factory_; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 400 |
| 401 // Notify the delegate of completion. | 401 // Notify the delegate of completion. |
| 402 delegate_->OnCompletedConnectionTestExperiment(current, result); | 402 delegate_->OnCompletedConnectionTestExperiment(current, result); |
| 403 | 403 |
| 404 if (remaining_experiments_.empty()) { | 404 if (remaining_experiments_.empty()) { |
| 405 delegate_->OnCompletedConnectionTestSuite(); | 405 delegate_->OnCompletedConnectionTestSuite(); |
| 406 } else { | 406 } else { |
| 407 StartNextExperiment(); | 407 StartNextExperiment(); |
| 408 } | 408 } |
| 409 } | 409 } |
| OLD | NEW |