Index: net/base/network_delegate.h |
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h |
index 64c4918cc8c4281c45e7212a6fc2b4da8a042d9a..dfefad069ab89bc9282ea90a790df15257f9424d 100644 |
--- a/net/base/network_delegate.h |
+++ b/net/base/network_delegate.h |
@@ -50,16 +50,16 @@ class NetworkDelegate : public base::NonThreadSafe { |
// checking on parameters. See the corresponding virtuals for explanations of |
// the methods and their arguments. |
int NotifyBeforeURLRequest(URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
csilv
2011/11/30 21:56:50
Since we're already in the net namespace, none of
James Hawkins
2011/12/01 00:40:26
Done.
|
GURL* new_url); |
int NotifyBeforeSendHeaders(URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
HttpRequestHeaders* headers); |
void NotifySendHeaders(URLRequest* request, |
const HttpRequestHeaders& headers); |
int NotifyHeadersReceived( |
URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
HttpResponseHeaders* original_response_headers, |
scoped_refptr<HttpResponseHeaders>* override_response_headers); |
void NotifyBeforeRedirect(URLRequest* request, |
@@ -87,7 +87,7 @@ class NetworkDelegate : public base::NonThreadSafe { |
// and ERR_IO_PENDING will cancel the request and report the status code as |
// the reason. |
virtual int OnBeforeURLRequest(URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
GURL* new_url) = 0; |
// Called right before the HTTP headers are sent. Allows the delegate to |
@@ -95,7 +95,7 @@ class NetworkDelegate : public base::NonThreadSafe { |
// valid only until OnURLRequestDestroyed is called for this request. |
// Returns a net status code. |
virtual int OnBeforeSendHeaders(URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
HttpRequestHeaders* headers) = 0; |
// Called right before the HTTP request(s) are being sent to the network. |
@@ -113,7 +113,7 @@ class NetworkDelegate : public base::NonThreadSafe { |
// |original_response_headers|. |
virtual int OnHeadersReceived( |
URLRequest* request, |
- OldCompletionCallback* callback, |
+ const net::CompletionCallback& callback, |
HttpResponseHeaders* original_response_headers, |
scoped_refptr<HttpResponseHeaders>* override_response_headers) = 0; |