| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 14 #include "net/base/net_log.h" | 14 #include "net/base/net_log.h" |
| 15 #include "net/http/http_auth.h" | 15 #include "net/http/http_auth.h" |
| 16 | 16 |
| 17 class Histogram; | 17 class Histogram; |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 class HostResolver; | |
| 22 class ProxyInfo; | |
| 23 struct HttpRequestInfo; | 21 struct HttpRequestInfo; |
| 24 | 22 |
| 25 // HttpAuthHandler is the interface for the authentication schemes | 23 // HttpAuthHandler is the interface for the authentication schemes |
| 26 // (basic, digest, NTLM, Negotiate). | 24 // (basic, digest, NTLM, Negotiate). |
| 27 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. | 25 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. |
| 28 class HttpAuthHandler { | 26 class HttpAuthHandler { |
| 29 public: | 27 public: |
| 30 HttpAuthHandler(); | 28 HttpAuthHandler(); |
| 31 virtual ~HttpAuthHandler(); | 29 virtual ~HttpAuthHandler(); |
| 32 | 30 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 CompletionCallback* original_callback_; | 175 CompletionCallback* original_callback_; |
| 178 CompletionCallbackImpl<HttpAuthHandler> wrapper_callback_; | 176 CompletionCallbackImpl<HttpAuthHandler> wrapper_callback_; |
| 179 // When GenerateAuthToken was called. | 177 // When GenerateAuthToken was called. |
| 180 base::TimeTicks generate_auth_token_start_; | 178 base::TimeTicks generate_auth_token_start_; |
| 181 scoped_refptr<Histogram> histogram_; | 179 scoped_refptr<Histogram> histogram_; |
| 182 }; | 180 }; |
| 183 | 181 |
| 184 } // namespace net | 182 } // namespace net |
| 185 | 183 |
| 186 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ | 184 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ |
| OLD | NEW |