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_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const BoundNetLog& net_log, | 70 const BoundNetLog& net_log, |
71 scoped_ptr<HttpAuthHandler>* handler); | 71 scoped_ptr<HttpAuthHandler>* handler); |
72 | 72 |
73 // This factory owns the passed in |nonce_generator|. | 73 // This factory owns the passed in |nonce_generator|. |
74 void set_nonce_generator(const NonceGenerator* nonce_generator); | 74 void set_nonce_generator(const NonceGenerator* nonce_generator); |
75 | 75 |
76 private: | 76 private: |
77 scoped_ptr<const NonceGenerator> nonce_generator_; | 77 scoped_ptr<const NonceGenerator> nonce_generator_; |
78 }; | 78 }; |
79 | 79 |
80 HttpAuth::AuthorizationResult HandleAnotherChallenge( | 80 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( |
81 HttpAuth::ChallengeTokenizer* challenge); | 81 HttpAuth::ChallengeTokenizer* challenge); |
82 | 82 |
83 protected: | 83 protected: |
84 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); | 84 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); |
85 | 85 |
86 virtual int GenerateAuthTokenImpl(const string16* username, | 86 virtual int GenerateAuthTokenImpl(const string16* username, |
87 const string16* password, | 87 const string16* password, |
88 const HttpRequestInfo* request, | 88 const HttpRequestInfo* request, |
89 CompletionCallback* callback, | 89 CompletionCallback* callback, |
90 std::string* auth_token); | 90 std::string* auth_token); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 DigestAlgorithm algorithm_; | 168 DigestAlgorithm algorithm_; |
169 QualityOfProtection qop_; | 169 QualityOfProtection qop_; |
170 | 170 |
171 int nonce_count_; | 171 int nonce_count_; |
172 const NonceGenerator* nonce_generator_; | 172 const NonceGenerator* nonce_generator_; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace net | 175 } // namespace net |
176 | 176 |
177 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ | 177 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ |
OLD | NEW |