Chromium Code Reviews| Index: net/http/http_stream.h |
| diff --git a/net/http/http_stream.h b/net/http/http_stream.h |
| index 45dc46cb0cb2bffc8660021fbdecf1858de57478..6aa7cbcf5a88e723339e25b73451b55f9ca9a14c 100644 |
| --- a/net/http/http_stream.h |
| +++ b/net/http/http_stream.h |
| @@ -23,6 +23,7 @@ |
| namespace net { |
| class BoundNetLog; |
| +class HttpNetworkSession; |
| class HttpRequestHeaders; |
| struct HttpRequestInfo; |
| class HttpResponseInfo; |
| @@ -139,6 +140,11 @@ class NET_EXPORT_PRIVATE HttpStream { |
| // response body vs bytes transferred. |
| virtual void LogNumRttVsBytesMetrics() const = 0; |
| + // In the case of an HTTP error, flush the response body (usually a simple |
|
willchan no longer on Chromium
2011/09/03 01:11:06
It's not only used for HTTP errors, but also redir
James Simonsen
2011/09/07 21:20:10
Done.
|
| + // error page) so that we can re-use the underlying connection. This stream |
| + // is responsible for deleting itself when draining is complete. |
| + virtual void Drain(HttpNetworkSession* session) = 0; |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(HttpStream); |
| }; |