summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction_unittest.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_transaction_unittest.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_transaction_unittest.h')
-rw-r--r--net/http/http_transaction_unittest.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/http/http_transaction_unittest.h b/net/http/http_transaction_unittest.h
index e4ce1d6..ba24c8c 100644
--- a/net/http/http_transaction_unittest.h
+++ b/net/http/http_transaction_unittest.h
@@ -159,24 +159,24 @@ class MockNetworkTransaction : public net::HttpTransaction {
virtual ~MockNetworkTransaction();
virtual int Start(const net::HttpRequestInfo* request,
- net::OldCompletionCallback* callback,
+ const net::CompletionCallback& callback,
const net::BoundNetLog& net_log) OVERRIDE;
virtual int RestartIgnoringLastError(
- net::OldCompletionCallback* callback) OVERRIDE;
+ const net::CompletionCallback& callback) OVERRIDE;
virtual int RestartWithCertificate(
net::X509Certificate* client_cert,
- net::OldCompletionCallback* callback) OVERRIDE;
+ const net::CompletionCallback& callback) OVERRIDE;
virtual int RestartWithAuth(
const net::AuthCredentials& credentials,
- net::OldCompletionCallback* callback) OVERRIDE;
+ const net::CompletionCallback& callback) OVERRIDE;
virtual bool IsReadyToRestartForAuth() OVERRIDE;
virtual int Read(net::IOBuffer* buf, int buf_len,
- net::OldCompletionCallback* callback) OVERRIDE;
+ const net::CompletionCallback& callback) OVERRIDE;
virtual void StopCaching() OVERRIDE;
@@ -189,10 +189,10 @@ class MockNetworkTransaction : public net::HttpTransaction {
virtual uint64 GetUploadProgress() const OVERRIDE;
private:
- void CallbackLater(net::OldCompletionCallback* callback, int result);
- void RunCallback(net::OldCompletionCallback* callback, int result);
+ void CallbackLater(const net::CompletionCallback& callback, int result);
+ void RunCallback(const net::CompletionCallback& callback, int result);
- base::WeakPtrFactory<MockNetworkTransaction> ptr_factory_;
+ base::WeakPtrFactory<MockNetworkTransaction> weak_factory_;
net::HttpResponseInfo response_;
std::string data_;
int data_cursor_;