| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool URLRequestJob::IsSafeRedirect(const GURL& location) { | 151 bool URLRequestJob::IsSafeRedirect(const GURL& location) { |
| 152 return true; | 152 return true; |
| 153 } | 153 } |
| 154 | 154 |
| 155 bool URLRequestJob::NeedsAuth() { | 155 bool URLRequestJob::NeedsAuth() { |
| 156 return false; | 156 return false; |
| 157 } | 157 } |
| 158 | 158 |
| 159 bool URLRequestJob::HasAuth() const { |
| 160 return false; |
| 161 } |
| 162 |
| 159 void URLRequestJob::GetAuthChallengeInfo( | 163 void URLRequestJob::GetAuthChallengeInfo( |
| 160 scoped_refptr<AuthChallengeInfo>* auth_info) { | 164 scoped_refptr<AuthChallengeInfo>* auth_info) { |
| 161 // This will only be called if NeedsAuth() returns true, in which | 165 // This will only be called if NeedsAuth() returns true, in which |
| 162 // case the derived class should implement this! | 166 // case the derived class should implement this! |
| 163 NOTREACHED(); | 167 NOTREACHED(); |
| 164 } | 168 } |
| 165 | 169 |
| 166 void URLRequestJob::SetAuth(const AuthCredentials& credentials) { | 170 void URLRequestJob::SetAuth(const AuthCredentials& credentials) { |
| 167 // This will only be called if NeedsAuth() returns true, in which | 171 // This will only be called if NeedsAuth() returns true, in which |
| 168 // case the derived class should implement this! | 172 // case the derived class should implement this! |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 716 } |
| 713 | 717 |
| 714 bool URLRequestJob::FilterHasData() { | 718 bool URLRequestJob::FilterHasData() { |
| 715 return filter_.get() && filter_->stream_data_len(); | 719 return filter_.get() && filter_->stream_data_len(); |
| 716 } | 720 } |
| 717 | 721 |
| 718 void URLRequestJob::UpdatePacketReadTimes() { | 722 void URLRequestJob::UpdatePacketReadTimes() { |
| 719 } | 723 } |
| 720 | 724 |
| 721 } // namespace net | 725 } // namespace net |
| OLD | NEW |