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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reduce password zapping Created 9 years, 1 month 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
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/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return false; 146 return false;
147 } 147 }
148 148
149 void URLRequestJob::GetAuthChallengeInfo( 149 void URLRequestJob::GetAuthChallengeInfo(
150 scoped_refptr<AuthChallengeInfo>* auth_info) { 150 scoped_refptr<AuthChallengeInfo>* auth_info) {
151 // This will only be called if NeedsAuth() returns true, in which 151 // This will only be called if NeedsAuth() returns true, in which
152 // case the derived class should implement this! 152 // case the derived class should implement this!
153 NOTREACHED(); 153 NOTREACHED();
154 } 154 }
155 155
156 void URLRequestJob::SetAuth(const string16& username, 156 void URLRequestJob::SetAuth(const AuthCredentials& credentials) {
157 const string16& password) {
158 // This will only be called if NeedsAuth() returns true, in which 157 // This will only be called if NeedsAuth() returns true, in which
159 // case the derived class should implement this! 158 // case the derived class should implement this!
160 NOTREACHED(); 159 NOTREACHED();
161 } 160 }
162 161
163 void URLRequestJob::CancelAuth() { 162 void URLRequestJob::CancelAuth() {
164 // This will only be called if NeedsAuth() returns true, in which 163 // This will only be called if NeedsAuth() returns true, in which
165 // case the derived class should implement this! 164 // case the derived class should implement this!
166 NOTREACHED(); 165 NOTREACHED();
167 } 166 }
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 } 698 }
700 699
701 bool URLRequestJob::FilterHasData() { 700 bool URLRequestJob::FilterHasData() {
702 return filter_.get() && filter_->stream_data_len(); 701 return filter_.get() && filter_->stream_data_len();
703 } 702 }
704 703
705 void URLRequestJob::UpdatePacketReadTimes() { 704 void URLRequestJob::UpdatePacketReadTimes() {
706 } 705 }
707 706
708 } // namespace net 707 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698