| 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_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_H_ | 6 #define NET_HTTP_HTTP_AUTH_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // The identity used the default credentials for the computer, | 85 // The identity used the default credentials for the computer, |
| 86 // on schemes that support single sign-on. | 86 // on schemes that support single sign-on. |
| 87 IDENT_SRC_DEFAULT_CREDENTIALS, | 87 IDENT_SRC_DEFAULT_CREDENTIALS, |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 enum Scheme { | 90 enum Scheme { |
| 91 AUTH_SCHEME_BASIC = 0, | 91 AUTH_SCHEME_BASIC = 0, |
| 92 AUTH_SCHEME_DIGEST, | 92 AUTH_SCHEME_DIGEST, |
| 93 AUTH_SCHEME_NTLM, | 93 AUTH_SCHEME_NTLM, |
| 94 AUTH_SCHEME_NEGOTIATE, | 94 AUTH_SCHEME_NEGOTIATE, |
| 95 AUTH_SCHEME_SPDYPROXY, |
| 95 AUTH_SCHEME_MOCK, | 96 AUTH_SCHEME_MOCK, |
| 96 AUTH_SCHEME_MAX, | 97 AUTH_SCHEME_MAX, |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 // Helper structure used by HttpNetworkTransaction to track | 100 // Helper structure used by HttpNetworkTransaction to track |
| 100 // the current identity being used for authorization. | 101 // the current identity being used for authorization. |
| 101 struct Identity { | 102 struct Identity { |
| 102 Identity(); | 103 Identity(); |
| 103 | 104 |
| 104 IdentitySource source; | 105 IdentitySource source; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 std::string::const_iterator scheme_end_; | 207 std::string::const_iterator scheme_end_; |
| 207 | 208 |
| 208 std::string::const_iterator params_begin_; | 209 std::string::const_iterator params_begin_; |
| 209 std::string::const_iterator params_end_; | 210 std::string::const_iterator params_end_; |
| 210 }; | 211 }; |
| 211 }; | 212 }; |
| 212 | 213 |
| 213 } // namespace net | 214 } // namespace net |
| 214 | 215 |
| 215 #endif // NET_HTTP_HTTP_AUTH_H_ | 216 #endif // NET_HTTP_HTTP_AUTH_H_ |
| OLD | NEW |