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

Unified Diff: net/http/http_stream_factory.h

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change pool API Created 9 years, 3 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_stream_factory.h
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index 66c0a23d580255b82b4d26b139cd46f3403a97c1..a572ae3f8d8551bc9ef3e1259c7ac73b1bfbf538 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -24,6 +24,7 @@ class HostPortPair;
class HttpAlternateProtocols;
class HttpAuthController;
class HttpNetworkSession;
+class HttpPipelinedHost;
class HttpResponseInfo;
class HttpStream;
class ProxyInfo;
@@ -174,6 +175,11 @@ class NET_EXPORT HttpStreamFactory {
virtual void AddTLSIntolerantServer(const HostPortPair& server) = 0;
virtual bool IsTLSIntolerantServer(const HostPortPair& server) const = 0;
+ // Called when a HttpPipelinedHost has new capacity. Attempts to allocate any
+ // pending pipeline-capable requests to pipelines.
+ virtual void OnHttpPipelinedHostHasAdditionalCapacity(
willchan no longer on Chromium 2011/09/29 23:36:02 I consider pipelining an implementation detail. No
James Simonsen 2011/10/12 01:36:58 I tried this, but I didn't like it. The pool gets
James Simonsen 2011/10/13 19:29:57 Done.
+ const HostPortPair& origin) = 0;
+
// Static settings
static GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint);
@@ -228,6 +234,11 @@ class NET_EXPORT HttpStreamFactory {
static void SetHostMappingRules(const std::string& rules);
+ static void set_http_pipelining_enabled(bool value) {
+ http_pipelining_enabled_ = value;
+ }
+ static bool http_pipelining_enabled() { return http_pipelining_enabled_; }
+
protected:
HttpStreamFactory();
@@ -242,6 +253,7 @@ class NET_EXPORT HttpStreamFactory {
static bool force_spdy_always_;
static std::list<HostPortPair>* forced_spdy_exclusions_;
static bool ignore_certificate_errors_;
+ static bool http_pipelining_enabled_;
DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
};

Powered by Google App Engine
This is Rietveld 408576698