summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/preconnect.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/preconnect.h')
-rw-r--r--chrome/browser/net/preconnect.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/net/preconnect.h b/chrome/browser/net/preconnect.h
index 0d7ed21..056d5d6 100644
--- a/chrome/browser/net/preconnect.h
+++ b/chrome/browser/net/preconnect.h
@@ -1,18 +1,23 @@
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Copyright (c) 2011, Code Aurora Forum. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// A Preconnect instance maintains state while a TCP/IP connection is made, and
+// and then released into the pool of available connections for future use.
+
#ifndef CHROME_BROWSER_NET_PRECONNECT_H_
#define CHROME_BROWSER_NET_PRECONNECT_H_
#pragma once
-#include "net/http/preconnect.h"
-
#include "chrome/browser/net/url_info.h"
+class GURL;
+
namespace chrome_browser_net {
+// Try to preconnect. Typically motivated by OMNIBOX to reach search service.
+// |count| may be used to request more than one connection be established in
+// parallel.
void PreconnectOnUIThread(const GURL& url,
UrlInfo::ResolutionMotivation motivation,
int count);
@@ -23,6 +28,7 @@ void PreconnectOnUIThread(const GURL& url,
void PreconnectOnIOThread(const GURL& url,
UrlInfo::ResolutionMotivation motivation,
int count);
+
} // namespace chrome_browser_net
#endif // CHROME_BROWSER_NET_PRECONNECT_H_