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

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

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "net/http/http_auth_handler.h" 8 #include "net/http/http_auth_handler.h"
9 9
10 // This is needed for the FRIEND_TEST() macro. 10 // This is needed for the FRIEND_TEST() macro.
(...skipping 13 matching lines...) Expand all
24 virtual bool Init(std::string::const_iterator challenge_begin, 24 virtual bool Init(std::string::const_iterator challenge_begin,
25 std::string::const_iterator challenge_end) { 25 std::string::const_iterator challenge_end) {
26 nonce_count_ = 0; 26 nonce_count_ = 0;
27 return ParseChallenge(challenge_begin, challenge_end); 27 return ParseChallenge(challenge_begin, challenge_end);
28 } 28 }
29 29
30 private: 30 private:
31 FRIEND_TEST(HttpAuthHandlerDigestTest, ParseChallenge); 31 FRIEND_TEST(HttpAuthHandlerDigestTest, ParseChallenge);
32 FRIEND_TEST(HttpAuthHandlerDigestTest, AssembleCredentials); 32 FRIEND_TEST(HttpAuthHandlerDigestTest, AssembleCredentials);
33 33
34 ~HttpAuthHandlerDigest() {}
eroman 2009/11/05 20:52:19 nit: move this below the enums.
jam 2009/11/05 21:56:02 Done.
35
34 // Possible values for the "algorithm" property. 36 // Possible values for the "algorithm" property.
35 enum DigestAlgorithm { 37 enum DigestAlgorithm {
36 // No algorithm was specified. According to RFC 2617 this means 38 // No algorithm was specified. According to RFC 2617 this means
37 // we should default to ALGORITHM_MD5. 39 // we should default to ALGORITHM_MD5.
38 ALGORITHM_UNSPECIFIED, 40 ALGORITHM_UNSPECIFIED,
39 41
40 // Hashes are run for every request. 42 // Hashes are run for every request.
41 ALGORITHM_MD5, 43 ALGORITHM_MD5,
42 44
43 // Hash is run only once during the first WWW-Authenticate handshake. 45 // Hash is run only once during the first WWW-Authenticate handshake.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool stale_; 101 bool stale_;
100 DigestAlgorithm algorithm_; 102 DigestAlgorithm algorithm_;
101 int qop_; // Bitfield of QualityOfProtection 103 int qop_; // Bitfield of QualityOfProtection
102 104
103 int nonce_count_; 105 int nonce_count_;
104 }; 106 };
105 107
106 } // namespace net 108 } // namespace net
107 109
108 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ 110 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698