| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "net/http/http_auth.h" | 11 #include "net/http/http_auth.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class HttpRequestInfo; | 15 struct HttpRequestInfo; |
| 16 class ProxyInfo; | 16 class ProxyInfo; |
| 17 | 17 |
| 18 // HttpAuthHandler is the interface for the authentication schemes | 18 // HttpAuthHandler is the interface for the authentication schemes |
| 19 // (basic, digest, NTLM, Negotiate). | 19 // (basic, digest, NTLM, Negotiate). |
| 20 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. | 20 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. |
| 21 class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { | 21 class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { |
| 22 public: | 22 public: |
| 23 // Initializes the handler using a challenge issued by a server. | 23 // Initializes the handler using a challenge issued by a server. |
| 24 // |challenge| must be non-NULL and have already tokenized the | 24 // |challenge| must be non-NULL and have already tokenized the |
| 25 // authentication scheme, but none of the tokens occuring after the | 25 // authentication scheme, but none of the tokens occuring after the |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // origin server. | 138 // origin server. |
| 139 HttpAuth::Target target_; | 139 HttpAuth::Target target_; |
| 140 | 140 |
| 141 // A bitmask of the properties of the authentication scheme. | 141 // A bitmask of the properties of the authentication scheme. |
| 142 int properties_; | 142 int properties_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace net | 145 } // namespace net |
| 146 | 146 |
| 147 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ | 147 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ |
| OLD | NEW |