Index: net/http/http_stream_base.h |
diff --git a/net/http/http_stream_base.h b/net/http/http_stream_base.h |
index dbf51de660e58389d81c406753b364672f0344c3..e5e5f1327b9f66ae671874dec22eaabcb68e507d 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,7 @@ 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. |
willchan no longer on Chromium
2012/11/23 03:17:43
Can you explain why this should be renamed (I agre
Ryan Hamilton
2012/11/23 04:19:53
Done.
|
virtual bool CanFindEndOfResponse() const = 0; |
// A stream exists on top of a connection. If the connection has been used |