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

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

Issue 2067933002: Use correct origin when prompting for proxy authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content_shell build. Created 4 years, 6 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/http/http_auth_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "net/base/zap.h" 6 #include "net/base/zap.h"
7 7
8 namespace net { 8 namespace net {
9 9
10 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) { 10 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) {
11 } 11 }
12 12
13 bool AuthChallengeInfo::Equals(const AuthChallengeInfo& that) const { 13 bool AuthChallengeInfo::Equals(const AuthChallengeInfo& that) const {
14 return (this->is_proxy == that.is_proxy && 14 return (this->is_proxy == that.is_proxy &&
15 this->challenger.Equals(that.challenger) && 15 this->challenger == that.challenger && this->scheme == that.scheme &&
16 this->scheme == that.scheme &&
17 this->realm == that.realm); 16 this->realm == that.realm);
18 } 17 }
19 18
20 AuthChallengeInfo::~AuthChallengeInfo() { 19 AuthChallengeInfo::~AuthChallengeInfo() {
21 } 20 }
22 21
23 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { 22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
24 } 23 }
25 24
26 AuthData::~AuthData() { 25 AuthData::~AuthData() {
(...skipping 23 matching lines...) Expand all
50 49
51 bool AuthCredentials::Empty() const { 50 bool AuthCredentials::Empty() const {
52 return username_.empty() && password_.empty(); 51 return username_.empty() && password_.empty();
53 } 52 }
54 53
55 void AuthCredentials::Zap() { 54 void AuthCredentials::Zap() {
56 ZapString(&password_); 55 ZapString(&password_);
57 } 56 }
58 57
59 } // namespace net 58 } // namespace net
OLDNEW
« no previous file with comments | « net/base/auth.h ('k') | net/http/http_auth_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698