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

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

Issue 8015004: webRequest.onAuthRequired listeners can provide authentication credentials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle multiple blocking onAuthRequired Created 9 years, 3 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 | Annotate | Revision Log
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 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::Equals(const AuthChallengeInfo& that) const { 12 bool AuthChallengeInfo::Equals(const AuthChallengeInfo& that) const {
13 return (this->is_proxy == that.is_proxy && 13 return (this->is_proxy == that.is_proxy &&
14 this->challenger.Equals(that.challenger) && 14 this->challenger.Equals(that.challenger) &&
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 AuthChallengeInfo::~AuthChallengeInfo() { 19 AuthChallengeInfo::~AuthChallengeInfo() {
20 } 20 }
21 21
22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { 22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
23 } 23 }
24 24
25 AuthData::~AuthData() { 25 AuthData::~AuthData() {
26 } 26 }
27 27
28 AuthCredentials::AuthCredentials() : is_valid(false) {
29 }
30
31 AuthCredentials::~AuthCredentials() {
32 }
33
28 } // namespace net 34 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698