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

Side by Side Diff: net/http/http_auth_handler_basic.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 35 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge(
36 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; 36 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE;
37 37
38 protected: 38 protected:
39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) OVERRIDE;
40 40
41 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, 41 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials,
42 const HttpRequestInfo* request, 42 const HttpRequestInfo* request,
43 OldCompletionCallback* callback, 43 const CompletionCallback& callback,
44 std::string* auth_token) OVERRIDE; 44 std::string* auth_token) OVERRIDE;
45 45
46 private: 46 private:
47 virtual ~HttpAuthHandlerBasic() {} 47 virtual ~HttpAuthHandlerBasic() {}
48 48
49 bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge); 49 bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge);
50 }; 50 };
51 51
52 } // namespace net 52 } // namespace net
53 53
54 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 54 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698