summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/preconnect.cc
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 20:50:48 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 20:50:48 +0000
commit564e170373c0bb521d735547dc7f443d19b2fac5 (patch)
treed7a4924ec31eac42d6af1e5a0d5ac1ebc38bb4bb /chrome/browser/net/preconnect.cc
parente45fb318db9aae1dcecaecbd0a563a65d039bfa3 (diff)
downloadchromium_src-564e170373c0bb521d735547dc7f443d19b2fac5.zip
chromium_src-564e170373c0bb521d735547dc7f443d19b2fac5.tar.gz
chromium_src-564e170373c0bb521d735547dc7f443d19b2fac5.tar.bz2
Fix the construction of the pool names for preconnect.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2842033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/preconnect.cc')
-rw-r--r--chrome/browser/net/preconnect.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/net/preconnect.cc b/chrome/browser/net/preconnect.cc
index c4c7c97..a669232 100644
--- a/chrome/browser/net/preconnect.cc
+++ b/chrome/browser/net/preconnect.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/common/net/url_request_context_getter.h"
+#include "net/base/host_port_pair.h"
#include "net/http/http_network_session.h"
#include "net/http/http_transaction_factory.h"
#include "net/url_request/url_request_context.h"
@@ -54,8 +55,13 @@ void Preconnect::PreconnectOnIOThread(const GURL& url) {
if (!callback_instance_)
callback_instance_ = new Preconnect;
+ net::HostPortPair endpoint(url.host(), url.EffectiveIntPort());
+ std::string group_name = endpoint.ToString();
+ if (url.SchemeIs("https"))
+ group_name = StringPrintf("ssl/%s", group_name.c_str());
+
// TODO(jar): This does not handle proxies currently.
- handle.Init(url.spec(), params, net::LOWEST,
+ handle.Init(group_name, params, net::LOWEST,
callback_instance_, pool, net::BoundNetLog());
handle.Reset();
}