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

Unified Diff: net/http/http_pipelined_connection.h

Issue 8586015: Slow start pipelining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address various feedback Created 9 years, 1 month 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_connection_impl.h » ('j') | net/http/http_pipelined_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_pipelined_connection.h
diff --git a/net/http/http_pipelined_connection.h b/net/http/http_pipelined_connection.h
index 59e61d6a48b75f68d0c3fff0e7a5b98a26932f9e..e8c332be97b57d3b676d5587203a10310fa39457 100644
--- a/net/http/http_pipelined_connection.h
+++ b/net/http/http_pipelined_connection.h
@@ -19,12 +19,24 @@ struct SSLConfig;
class NET_EXPORT_PRIVATE HttpPipelinedConnection {
public:
+ enum Feedback {
+ OK,
+ PIPELINE_SOCKET_ERROR,
+ OLD_HTTP_VERSION,
+ MUST_CLOSE_CONNECTION,
+ };
+
class Delegate {
public:
// Called when a pipeline has newly available capacity. This may be because
// the first request has been sent and the pipeline is now active. Or, it
// may be because a request successfully completed.
virtual void OnPipelineHasCapacity(HttpPipelinedConnection* pipeline) = 0;
+
+ // Called every time a pipeline receives headers. Lets the delegate know if
+ // the headers indicate that pipelining can be used.
+ virtual void OnPipelineFeedback(HttpPipelinedConnection* pipeline,
+ Feedback feedback) = 0;
};
class Factory {
« no previous file with comments | « no previous file | net/http/http_pipelined_connection_impl.h » ('j') | net/http/http_pipelined_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698