| 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_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 "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 HttpAuth::Scheme auth_scheme() const { | 80 HttpAuth::Scheme auth_scheme() const { |
| 81 return auth_scheme_; | 81 return auth_scheme_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 // The realm, encoded as UTF-8. This may be empty. | 84 // The realm, encoded as UTF-8. This may be empty. |
| 85 const std::string& realm() const { | 85 const std::string& realm() const { |
| 86 return realm_; | 86 return realm_; |
| 87 } | 87 } |
| 88 | 88 |
| 89 // The challenge which was issued when creating the handler. | 89 // The challenge which was issued when creating the handler. |
| 90 const std::string challenge() const { | 90 const std::string& challenge() const { return auth_challenge_; } |
| 91 return auth_challenge_; | |
| 92 } | |
| 93 | 91 |
| 94 // Numeric rank based on the challenge's security level. Higher | 92 // Numeric rank based on the challenge's security level. Higher |
| 95 // numbers are better. Used by HttpAuth::ChooseBestChallenge(). | 93 // numbers are better. Used by HttpAuth::ChooseBestChallenge(). |
| 96 int score() const { | 94 int score() const { |
| 97 return score_; | 95 return score_; |
| 98 } | 96 } |
| 99 | 97 |
| 100 HttpAuth::Target target() const { | 98 HttpAuth::Target target() const { |
| 101 return target_; | 99 return target_; |
| 102 } | 100 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 private: | 188 private: |
| 191 void OnGenerateAuthTokenComplete(int rv); | 189 void OnGenerateAuthTokenComplete(int rv); |
| 192 void FinishGenerateAuthToken(); | 190 void FinishGenerateAuthToken(); |
| 193 | 191 |
| 194 CompletionCallback callback_; | 192 CompletionCallback callback_; |
| 195 }; | 193 }; |
| 196 | 194 |
| 197 } // namespace net | 195 } // namespace net |
| 198 | 196 |
| 199 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ | 197 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ |
| OLD | NEW |