| 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_DIGEST_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( | 81 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( |
| 82 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; | 82 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; |
| 83 | 83 |
| 84 protected: | 84 protected: |
| 85 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; | 85 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; |
| 86 | 86 |
| 87 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, | 87 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, |
| 88 const HttpRequestInfo* request, | 88 const HttpRequestInfo* request, |
| 89 OldCompletionCallback* callback, | 89 const CompletionCallback& callback, |
| 90 std::string* auth_token) OVERRIDE; | 90 std::string* auth_token) OVERRIDE; |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, ParseChallenge); | 93 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, ParseChallenge); |
| 94 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, AssembleCredentials); | 94 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, AssembleCredentials); |
| 95 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DigestPreAuthNonceCount); | 95 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DigestPreAuthNonceCount); |
| 96 | 96 |
| 97 // Possible values for the "algorithm" property. | 97 // Possible values for the "algorithm" property. |
| 98 enum DigestAlgorithm { | 98 enum DigestAlgorithm { |
| 99 // No algorithm was specified. According to RFC 2617 this means | 99 // No algorithm was specified. According to RFC 2617 this means |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // UTF-8. | 171 // UTF-8. |
| 172 std::string original_realm_; | 172 std::string original_realm_; |
| 173 | 173 |
| 174 int nonce_count_; | 174 int nonce_count_; |
| 175 const NonceGenerator* nonce_generator_; | 175 const NonceGenerator* nonce_generator_; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace net | 178 } // namespace net |
| 179 | 179 |
| 180 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ | 180 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ |
| OLD | NEW |