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 #include "net/base/auth.h" | 5 #include "net/base/auth.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) { | 9 const char kTLSSRPScheme[] = "tls-srp"; |
| 10 |
| 11 AuthChallengeInfo::AuthChallengeInfo() : |
| 12 is_proxy(false), |
| 13 over_protocol(AUTH_OVER_HTTP) { |
10 } | 14 } |
11 | 15 |
12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { | 16 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { |
13 return (this->is_proxy == that.is_proxy && | 17 return (this->is_proxy == that.is_proxy && |
14 this->host_and_port == that.host_and_port && | 18 this->host_and_port == that.host_and_port && |
15 this->scheme == that.scheme && | 19 this->scheme == that.scheme && |
16 this->realm == that.realm); | 20 this->realm == that.realm); |
17 } | 21 } |
18 | 22 |
| 23 void AuthChallengeInfo::Reset() { |
| 24 is_proxy = false; |
| 25 host_and_port.clear(); |
| 26 scheme.clear(); |
| 27 realm.clear(); |
| 28 } |
| 29 |
19 AuthChallengeInfo::~AuthChallengeInfo() { | 30 AuthChallengeInfo::~AuthChallengeInfo() { |
20 } | 31 } |
21 | 32 |
22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { | 33 AuthData::AuthData() : |
| 34 state(AUTH_STATE_NEED_AUTH), |
| 35 over_protocol(AUTH_OVER_HTTP) { |
23 } | 36 } |
24 | 37 |
25 AuthData::~AuthData() { | 38 AuthData::~AuthData() { |
26 } | 39 } |
27 | 40 |
28 } // namespace net | 41 } // namespace net |
OLD | NEW |