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

Unified Diff: net/http/http_pipelined_connection_impl.h

Issue 8591037: Implement Drain() on HttpPipelinedStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits 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
Index: net/http/http_pipelined_connection_impl.h
diff --git a/net/http/http_pipelined_connection_impl.h b/net/http/http_pipelined_connection_impl.h
index 6a7f3859f8102f809edbe52a7de4ba6c1c2ad225..a63aabd0d430167e2d5e652f65e82acdbe55d28f 100644
--- a/net/http/http_pipelined_connection_impl.h
+++ b/net/http/http_pipelined_connection_impl.h
@@ -28,6 +28,7 @@ namespace net {
class ClientSocketHandle;
class GrowableIOBuffer;
+class HttpNetworkSession;
class HttpRequestHeaders;
class HttpResponseInfo;
class IOBuffer;
@@ -117,6 +118,10 @@ class NET_EXPORT_PRIVATE HttpPipelinedConnectionImpl
void GetSSLCertRequestInfo(int pipeline_id,
SSLCertRequestInfo* cert_request_info);
+ // Attempts to drain the response body for |stream| so that the pipeline may
+ // be reused.
+ void Drain(HttpPipelinedStream* stream, HttpNetworkSession* session);
+
private:
enum StreamState {
STREAM_CREATED,
« no previous file with comments | « no previous file | net/http/http_pipelined_connection_impl.cc » ('j') | net/http/http_pipelined_connection_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698