| Index: net/base/auth.cc
|
| diff --git a/net/base/auth.cc b/net/base/auth.cc
|
| index 104400f6afb5729cf13f73dd65162c6bd42702e9..cef2e25e9aed3094e4025da431165a71618ef11c 100644
|
| --- a/net/base/auth.cc
|
| +++ b/net/base/auth.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "net/base/auth.h"
|
| +#include "net/base/zap.h"
|
|
|
| namespace net {
|
|
|
| @@ -28,7 +29,30 @@ AuthData::~AuthData() {
|
| AuthCredentials::AuthCredentials() {
|
| }
|
|
|
| +AuthCredentials::AuthCredentials(const string16& username,
|
| + const string16& password)
|
| + : username_(username),
|
| + password_(password) {
|
| +}
|
| +
|
| AuthCredentials::~AuthCredentials() {
|
| }
|
|
|
| +void AuthCredentials::Set(const string16& username, const 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_);
|
| +}
|
| +
|
| } // namespace net
|
|
|