This source file includes following definitions.
- Equals
- password_
- Set
- Equals
- Empty
- Zap
#include "net/base/auth.h"
#include "net/base/zap.h"
namespace net {
AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) {
}
bool AuthChallengeInfo::Equals(const AuthChallengeInfo& that) const {
return (this->is_proxy == that.is_proxy &&
this->challenger.Equals(that.challenger) &&
this->scheme == that.scheme &&
this->realm == that.realm);
}
AuthChallengeInfo::~AuthChallengeInfo() {
}
AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
}
AuthData::~AuthData() {
}
AuthCredentials::AuthCredentials() {
}
AuthCredentials::AuthCredentials(const base::string16& username,
const base::string16& password)
: username_(username),
password_(password) {
}
AuthCredentials::~AuthCredentials() {
}
void AuthCredentials::Set(const base::string16& username,
const base::string16& password) {
username_ = username;
password_ = password;
}
bool AuthCredentials::Equals(const AuthCredentials& other) const {
return username_ == other.username_ && password_ == other.password_;
}
bool AuthCredentials::Empty() const {
return username_.empty() && password_.empty();
}
void AuthCredentials::Zap() {
ZapString(&password_);
}
}