| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/testing_pref_service.h" | 7 #include "chrome/test/base/testing_pref_service.h" |
| 8 #include "content/browser/browser_thread.h" | 8 #include "content/browser/browser_thread.h" |
| 9 #include "net/base/cert_verifier.h" | 9 #include "net/base/cert_verifier.h" |
| 10 #include "net/base/cookie_monster.h" | 10 #include "net/base/cookie_monster.h" |
| 11 #include "net/base/dnsrr_resolver.h" | 11 #include "net/base/dnsrr_resolver.h" |
| 12 #include "net/base/mock_host_resolver.h" | 12 #include "net/base/mock_host_resolver.h" |
| 13 #include "net/base/ssl_config_service_defaults.h" | 13 #include "net/base/ssl_config_service_defaults.h" |
| 14 #include "net/ftp/ftp_network_layer.h" | 14 #include "net/ftp/ftp_network_layer.h" |
| 15 #include "net/http/http_auth_handler_factory.h" | 15 #include "net/http/http_auth_handler_factory.h" |
| 16 #include "net/http/http_network_layer.h" | 16 #include "net/http/http_network_layer.h" |
| 17 #include "net/http/http_network_session.h" | 17 #include "net/http/http_network_session.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // any pending tasks instead of running them. This causes a problem with | 191 // any pending tasks instead of running them. This causes a problem with |
| 192 // net::ClientSocketPoolBaseHelper, since the "Group" holds a pointer | 192 // net::ClientSocketPoolBaseHelper, since the "Group" holds a pointer |
| 193 // |backup_task| that it will try to deref during the destructor, but | 193 // |backup_task| that it will try to deref during the destructor, but |
| 194 // depending on the order that pending tasks were deleted in, it might | 194 // depending on the order that pending tasks were deleted in, it might |
| 195 // already be invalid! See http://crbug.com/43291. | 195 // already be invalid! See http://crbug.com/43291. |
| 196 MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); | 196 MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
| 197 MessageLoop::current()->Run(); | 197 MessageLoop::current()->Run(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace | 200 } // namespace |
| OLD | NEW |