Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: net/base/auth.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/auth.h ('k') | net/base/backoff_entry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/base/auth.h"
6 #include "net/base/zap.h"
7
8 namespace net {
9
10 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) {
11 }
12
13 bool AuthChallengeInfo::Equals(const AuthChallengeInfo& that) const {
14 return (this->is_proxy == that.is_proxy &&
15 this->challenger.Equals(that.challenger) &&
16 this->scheme == that.scheme &&
17 this->realm == that.realm);
18 }
19
20 AuthChallengeInfo::~AuthChallengeInfo() {
21 }
22
23 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
24 }
25
26 AuthData::~AuthData() {
27 }
28
29 AuthCredentials::AuthCredentials() {
30 }
31
32 AuthCredentials::AuthCredentials(const base::string16& username,
33 const base::string16& password)
34 : username_(username),
35 password_(password) {
36 }
37
38 AuthCredentials::~AuthCredentials() {
39 }
40
41 void AuthCredentials::Set(const base::string16& username,
42 const base::string16& password) {
43 username_ = username;
44 password_ = password;
45 }
46
47 bool AuthCredentials::Equals(const AuthCredentials& other) const {
48 return username_ == other.username_ && password_ == other.password_;
49 }
50
51 bool AuthCredentials::Empty() const {
52 return username_.empty() && password_.empty();
53 }
54
55 void AuthCredentials::Zap() {
56 ZapString(&password_);
57 }
58
59 } // namespace net
OLDNEW
« no previous file with comments | « net/base/auth.h ('k') | net/base/backoff_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698