Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Unified Diff: net/http/http_auth_handler_mock.h

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_auth_handler_mock.h
diff --git a/net/http/http_auth_handler_mock.h b/net/http/http_auth_handler_mock.h
index 922a5cdc229052321bb1e369dbb7c8386bda7d20..8992d2e4da5a09abfccad570d8ba5fd17073f0d2 100644
--- a/net/http/http_auth_handler_mock.h
+++ b/net/http/http_auth_handler_mock.h
@@ -66,7 +66,7 @@ class HttpAuthHandlerMock : public HttpAuthHandler {
virtual bool NeedsCanonicalName();
virtual int ResolveCanonicalName(HostResolver* host_resolver,
- OldCompletionCallback* callback);
+ const CompletionCallback& callback);
void SetGenerateExpectation(bool async, int rv);
@@ -99,7 +99,7 @@ class HttpAuthHandlerMock : public HttpAuthHandler {
virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials,
const HttpRequestInfo* request,
- OldCompletionCallback* callback,
+ const CompletionCallback& callback,
std::string* auth_token) OVERRIDE;
private:
@@ -108,8 +108,8 @@ class HttpAuthHandlerMock : public HttpAuthHandler {
void OnGenerateAuthToken();
Resolve resolve_;
- OldCompletionCallback* user_callback_;
- base::WeakPtrFactory<HttpAuthHandlerMock> ptr_factory_;
+ CompletionCallback callback_;
+ base::WeakPtrFactory<HttpAuthHandlerMock> weak_factory_;
bool generate_async_;
int generate_rv_;
std::string* auth_token_;

Powered by Google App Engine
This is Rietveld 408576698