diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 15:56:20 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 15:56:20 +0000 |
commit | f702d57bc4b0afbf799e9d7de6cc751e1023f2e4 (patch) | |
tree | d1ad8eea4c2e2897498bc380c17b54b51260f7d0 /net/http | |
parent | f9cf5577f3dc6bfb03b411115c7c983211be2f3a (diff) | |
download | chromium_src-f702d57bc4b0afbf799e9d7de6cc751e1023f2e4.zip chromium_src-f702d57bc4b0afbf799e9d7de6cc751e1023f2e4.tar.gz chromium_src-f702d57bc4b0afbf799e9d7de6cc751e1023f2e4.tar.bz2 |
Add a QuicHttpStream class.
Review URL: https://chromiumcodereview.appspot.com/11364068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_stream_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_stream_base.h b/net/http/http_stream_base.h index dbf51de..0a37f27 100644 --- a/net/http/http_stream_base.h +++ b/net/http/http_stream_base.h @@ -35,6 +35,7 @@ class NET_EXPORT_PRIVATE HttpStreamBase { virtual ~HttpStreamBase() {} // Initialize stream. Must be called before calling SendRequest(). + // |request_info| must outlive the HttpStreamBase. // Returns a net error code, possibly ERR_IO_PENDING. virtual int InitializeStream(const HttpRequestInfo* request_info, const BoundNetLog& net_log, @@ -44,6 +45,7 @@ class NET_EXPORT_PRIVATE HttpStreamBase { // ERR_IO_PENDING is returned if the operation could not be completed // synchronously, in which case the result will be passed to the callback // when available. Returns OK on success. + // |response| must outlive the HttpStreamBase. virtual int SendRequest(const HttpRequestHeaders& request_headers, HttpResponseInfo* response, const CompletionCallback& callback) = 0; @@ -89,6 +91,9 @@ class NET_EXPORT_PRIVATE HttpStreamBase { // the response headers indicate either chunked encoding or content length. // If neither is sent, the server must close the connection for us to detect // the end of the response. + // TODO(rch): Rename this method, so that it is clear why it exists + // particularly as it applies to QUIC and SPDY for which the end of the + // response is always findable. virtual bool CanFindEndOfResponse() const = 0; // A stream exists on top of a connection. If the connection has been used |