Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: net/http/http_util.h

Issue 425803014: Refactor pooling logic into a helper method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Working Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_util.h
diff --git a/net/http/http_util.h b/net/http/http_util.h
index 14117c00289d22bd54c28398c28fdb99eb72a59f..dbd2f79cd0c85d0f18c27fc48b768cfd0726112b 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -21,6 +21,10 @@
namespace net {
+class CertVerifyResult;
+class SSLInfo;
+class TransportSecurityState;
+
class NET_EXPORT HttpUtil {
public:
// Returns the absolute path of the URL, to be used for the http request.
@@ -198,6 +202,13 @@ class NET_EXPORT HttpUtil {
// returned by GetStatusCodesForHistogram.
static int MapStatusCodeForHistogram(int code);
+ // Returns true if |hostname| can be pooled into an existing connection
+ // associated with |ssl_info|.
+ static bool CanPool(TransportSecurityState* transport_security_state,
+ const SSLInfo& ssl_info,
+ const std::string& old_hostname,
+ const std::string& new_hostname);
+
// Used to iterate over the name/value pairs of HTTP headers. To iterate
// over the values in a multi-value header, use ValuesIterator.
// See AssembleRawHeaders for joining line continuations (this iterator
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_util.cc » ('j') | net/http/http_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698