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

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

Issue 6525035: Invalidate credentials if the server rejects them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extra whitespace Created 9 years, 10 months 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) 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_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_H_
6 #define NET_HTTP_HTTP_AUTH_H_ 6 #define NET_HTTP_HTTP_AUTH_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 AUTHORIZATION_RESULT_REJECT, // The authorization attempt was rejected. 46 AUTHORIZATION_RESULT_REJECT, // The authorization attempt was rejected.
47 47
48 AUTHORIZATION_RESULT_STALE, // (Digest) The nonce used in the 48 AUTHORIZATION_RESULT_STALE, // (Digest) The nonce used in the
49 // authorization attempt is stale, but 49 // authorization attempt is stale, but
50 // otherwise the attempt was valid. 50 // otherwise the attempt was valid.
51 51
52 AUTHORIZATION_RESULT_INVALID, // The authentication challenge headers are 52 AUTHORIZATION_RESULT_INVALID, // The authentication challenge headers are
53 // poorly formed (the authorization attempt 53 // poorly formed (the authorization attempt
54 // itself may have been fine). 54 // itself may have been fine).
55
56 AUTHORIZATION_RESULT_DIFFERENT_REALM, // The authorization
57 // attempt was rejected,
58 // but the realm associated
59 // with the new challenge
60 // is different from the
61 // previous attempt.
55 }; 62 };
56 63
57 // Describes where the identity used for authentication came from. 64 // Describes where the identity used for authentication came from.
58 enum IdentitySource { 65 enum IdentitySource {
59 // Came from nowhere -- the identity is not initialized. 66 // Came from nowhere -- the identity is not initialized.
60 IDENT_SRC_NONE, 67 IDENT_SRC_NONE,
61 68
62 // The identity came from the auth cache, by doing a path-based 69 // The identity came from the auth cache, by doing a path-based
63 // lookup (premptive authorization). 70 // lookup (premptive authorization).
64 IDENT_SRC_PATH_LOOKUP, 71 IDENT_SRC_PATH_LOOKUP,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 std::string::const_iterator scheme_end_; 215 std::string::const_iterator scheme_end_;
209 216
210 std::string::const_iterator params_begin_; 217 std::string::const_iterator params_begin_;
211 std::string::const_iterator params_end_; 218 std::string::const_iterator params_end_;
212 }; 219 };
213 }; 220 };
214 221
215 } // namespace net 222 } // namespace net
216 223
217 #endif // NET_HTTP_HTTP_AUTH_H_ 224 #endif // NET_HTTP_HTTP_AUTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698