| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 protected: | 38 protected: |
| 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); | 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); |
| 40 | 40 |
| 41 virtual int GenerateAuthTokenImpl(const string16* username, | 41 virtual int GenerateAuthTokenImpl(const string16* username, |
| 42 const string16* password, | 42 const string16* password, |
| 43 const HttpRequestInfo* request, | 43 const HttpRequestInfo* request, |
| 44 CompletionCallback* callback, | 44 CompletionCallback* callback, |
| 45 std::string* auth_token); | 45 std::string* auth_token); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 ~HttpAuthHandlerBasic() {} | 48 virtual ~HttpAuthHandlerBasic() {} |
| 49 | 49 |
| 50 bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge); | 50 bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace net | 53 } // namespace net |
| 54 | 54 |
| 55 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ | 55 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ |
| OLD | NEW |