summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 23:22:41 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 23:22:41 +0000
commit49639fa94a527376c0e9b93d4c54c1b8c835c041 (patch)
treedd03b9fd758c7b19b25e9934f9de9def738cdc33 /net/http/http_stream.h
parent5fc2429ede8409759abf8d0c23ef5076e8e31fcf (diff)
downloadchromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.zip
chromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.tar.gz
chromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.tar.bz2
base::Bind: Convert most of net/http.
BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8990001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream.h')
-rw-r--r--net/http/http_stream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_stream.h b/net/http/http_stream.h
index 2d6402f..e52b957 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.