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

Unified Diff: net/http/http_pipelined_host_impl.h

Issue 8820005: Fix race between OnPipelineFeedback and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win build Created 9 years 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
« no previous file with comments | « no previous file | net/http/http_pipelined_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_pipelined_host_impl.h
diff --git a/net/http/http_pipelined_host_impl.h b/net/http/http_pipelined_host_impl.h
index f74de88489fdf2938a46a5025cf5a5bce33a2140..c1d745c4ca7226ce3162ce2b8897216826a5307c 100644
--- a/net/http/http_pipelined_host_impl.h
+++ b/net/http/http_pipelined_host_impl.h
@@ -85,6 +85,15 @@ class NET_EXPORT_PRIVATE HttpPipelinedHostImpl
// not be called if |capability_| is INCAPABLE.
int GetPipelineCapacity() const;
+ // Returns true if |pipeline| can handle a new request. This is true if the
+ // |pipeline| is active, usable, has capacity, and |capability_| is
+ // sufficient.
+ bool CanPipelineAcceptRequests(HttpPipelinedConnection* pipeline) const;
+
+ // Called when |this| moves from UNKNOWN |capability_| to PROBABLY_CAPABLE.
+ // Causes all pipelines to increase capacity to start pipelining.
+ void NotifyAllPipelinesHaveCapacity();
+
HttpPipelinedHost::Delegate* delegate_;
const HostPortPair origin_;
PipelineInfoMap pipelines_;
« no previous file with comments | « no previous file | net/http/http_pipelined_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698