OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |