| 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 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) { |
| 10 } | 10 } |
| 11 | 11 |
| 12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { | 12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { |
| 13 return (this->is_proxy == that.is_proxy && | 13 return (this->is_proxy == that.is_proxy && |
| 14 this->host_and_port == that.host_and_port && | 14 this->host_and_port == that.host_and_port && |
| 15 this->scheme == that.scheme && | 15 this->scheme == that.scheme && |
| 16 this->realm == that.realm); | 16 this->realm == that.realm); |
| 17 } | 17 } |
| 18 | 18 |
| 19 void AuthChallengeInfo::Reset() { |
| 20 is_proxy = false; |
| 21 host_and_port.clear(); |
| 22 scheme.clear(); |
| 23 realm.clear(); |
| 24 } |
| 25 |
| 19 AuthChallengeInfo::~AuthChallengeInfo() { | 26 AuthChallengeInfo::~AuthChallengeInfo() { |
| 20 } | 27 } |
| 21 | 28 |
| 22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { | 29 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { |
| 23 } | 30 } |
| 24 | 31 |
| 25 AuthData::~AuthData() { | 32 AuthData::~AuthData() { |
| 26 } | 33 } |
| 27 | 34 |
| 28 } // namespace net | 35 } // namespace net |
| OLD | NEW |