| Index: net/http/http_stream.h
|
| diff --git a/net/http/http_stream.h b/net/http/http_stream.h
|
| index 2d6402fb6495beb6882c286de67770ac485b24d3..e52b9575fc5fbf6c186eeaf6498e6033a2e0a133 100644
|
| --- a/net/http/http_stream.h
|
| +++ b/net/http/http_stream.h
|
| @@ -41,7 +41,7 @@ class NET_EXPORT_PRIVATE HttpStream {
|
| // Returns a net error code, possibly ERR_IO_PENDING.
|
| virtual int InitializeStream(const HttpRequestInfo* request_info,
|
| const BoundNetLog& net_log,
|
| - OldCompletionCallback* callback) = 0;
|
| + const CompletionCallback& callback) = 0;
|
|
|
| // Writes the headers and uploads body data to the underlying socket.
|
| // ERR_IO_PENDING is returned if the operation could not be completed
|
| @@ -51,7 +51,7 @@ class NET_EXPORT_PRIVATE HttpStream {
|
| virtual int SendRequest(const HttpRequestHeaders& request_headers,
|
| UploadDataStream* request_body,
|
| HttpResponseInfo* response,
|
| - OldCompletionCallback* callback) = 0;
|
| + const CompletionCallback& callback) = 0;
|
|
|
| // Queries the UploadDataStream for its progress (bytes sent).
|
| virtual uint64 GetUploadProgress() const = 0;
|
| @@ -61,7 +61,7 @@ class NET_EXPORT_PRIVATE HttpStream {
|
| // not be completed synchronously, in which case the result will be passed
|
| // to the callback when available. Returns OK on success. The response
|
| // headers are available in the HttpResponseInfo returned by GetResponseInfo
|
| - virtual int ReadResponseHeaders(OldCompletionCallback* callback) = 0;
|
| + virtual int ReadResponseHeaders(const CompletionCallback& callback) = 0;
|
|
|
| // Provides access to HttpResponseInfo (owned by HttpStream).
|
| virtual const HttpResponseInfo* GetResponseInfo() const = 0;
|
| @@ -77,7 +77,7 @@ class NET_EXPORT_PRIVATE HttpStream {
|
| // the socket acquires a reference to the provided buffer until the callback
|
| // is invoked or the socket is destroyed.
|
| virtual int ReadResponseBody(IOBuffer* buf, int buf_len,
|
| - OldCompletionCallback* callback) = 0;
|
| + const CompletionCallback& callback) = 0;
|
|
|
| // Closes the stream.
|
| // |not_reusable| indicates if the stream can be used for further requests.
|
|
|