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/histogram.h" | 7 #include "base/histogram.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_util.h" |
9 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
10 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
11 #include "chrome/common/net/url_request_context_getter.h" | 12 #include "chrome/common/net/url_request_context_getter.h" |
12 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
13 #include "net/http/http_network_session.h" | 14 #include "net/http/http_network_session.h" |
14 #include "net/http/http_transaction_factory.h" | 15 #include "net/http/http_transaction_factory.h" |
15 #include "net/proxy/proxy_service.h" | 16 #include "net/proxy/proxy_service.h" |
16 #include "net/url_request/url_request_context.h" | 17 #include "net/url_request/url_request_context.h" |
17 | 18 |
18 namespace chrome_browser_net { | 19 namespace chrome_browser_net { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 handle.Init(group_name, tcp_params, net::LOWEST, callback_instance_, pool, | 127 handle.Init(group_name, tcp_params, net::LOWEST, callback_instance_, pool, |
127 net::BoundNetLog()); | 128 net::BoundNetLog()); |
128 handle.Reset(); | 129 handle.Reset(); |
129 } | 130 } |
130 | 131 |
131 void Preconnect::RunWithParams(const Tuple1<int>& params) { | 132 void Preconnect::RunWithParams(const Tuple1<int>& params) { |
132 // This will rarely be called, as we reset the connection just after creating. | 133 // This will rarely be called, as we reset the connection just after creating. |
133 NOTREACHED(); | 134 NOTREACHED(); |
134 } | 135 } |
135 } // chrome_browser_net | 136 } // chrome_browser_net |
OLD | NEW |