Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: net/http/http_auth_handler_digest.h

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698