| 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/preconnect.h" | 5 #include "chrome/browser/net/preconnect.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
| 11 #include "chrome/common/net/url_request_context_getter.h" | 11 #include "chrome/common/net/url_request_context_getter.h" |
| 12 #include "net/http/http_network_session.h" | 12 #include "net/http/http_network_session.h" |
| 13 #include "net/http/http_transaction_factory.h" | 13 #include "net/http/http_transaction_factory.h" |
| 14 #include "net/url_request/url_request_context.h" | 14 #include "net/url_request/url_request_context.h" |
| 15 | 15 |
| 16 namespace chrome_browser_net { | 16 namespace chrome_browser_net { |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 void Preconnect::PreconnectOnUIThread(const GURL& url, | 19 void Preconnect::PreconnectOnUIThread(const GURL& url, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 net_log_, &io_callback_); | 111 net_log_, &io_callback_); |
| 112 if (rv != net::ERR_IO_PENDING) | 112 if (rv != net::ERR_IO_PENDING) |
| 113 delete this; | 113 delete this; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void Preconnect::OnPreconnectComplete(int error_code) { | 116 void Preconnect::OnPreconnectComplete(int error_code) { |
| 117 delete this; | 117 delete this; |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace chrome_browser_net | 120 } // namespace chrome_browser_net |
| OLD | NEW |