OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
8 #include "net/http/http_auth_handler.h" | 8 #include "net/http/http_auth_handler.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 // Code for handling http basic authentication. | 12 // Code for handling http basic authentication. |
13 class HttpAuthHandlerBasic : public HttpAuthHandler { | 13 class HttpAuthHandlerBasic : public HttpAuthHandler { |
14 public: | 14 public: |
15 virtual std::string GenerateCredentials(const std::wstring& username, | 15 virtual std::string GenerateCredentials(const std::wstring& username, |
16 const std::wstring& password, | 16 const std::wstring& password, |
17 const HttpRequestInfo*, | 17 const HttpRequestInfo*, |
18 const ProxyInfo*); | 18 const ProxyInfo*); |
19 protected: | 19 protected: |
20 virtual bool Init(std::string::const_iterator challenge_begin, | 20 virtual bool Init(std::string::const_iterator challenge_begin, |
21 std::string::const_iterator challenge_end); | 21 std::string::const_iterator challenge_end); |
22 | 22 |
| 23 private: |
| 24 ~HttpAuthHandlerBasic() {} |
23 }; | 25 }; |
24 | 26 |
25 } // namespace net | 27 } // namespace net |
26 | 28 |
27 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ | 29 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ |
OLD | NEW |