| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 void URLRequestJob::NotifyCertificateRequested( | 223 void URLRequestJob::NotifyCertificateRequested( |
| 224 SSLCertRequestInfo* cert_request_info) { | 224 SSLCertRequestInfo* cert_request_info) { |
| 225 if (!request_) | 225 if (!request_) |
| 226 return; // The request was destroyed, so there is no more work to do. | 226 return; // The request was destroyed, so there is no more work to do. |
| 227 | 227 |
| 228 request_->NotifyCertificateRequested(cert_request_info); | 228 request_->NotifyCertificateRequested(cert_request_info); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void URLRequestJob::NotifySSLCertificateError(int cert_error, | 231 void URLRequestJob::NotifySSLCertificateError(int cert_error, |
| 232 X509Certificate* cert) { | 232 const SSLInfo& ssl_info, |
| 233 bool must_be_fatal) { |
| 233 if (!request_) | 234 if (!request_) |
| 234 return; // The request was destroyed, so there is no more work to do. | 235 return; // The request was destroyed, so there is no more work to do. |
| 235 | 236 |
| 236 request_->NotifySSLCertificateError(cert_error, cert); | 237 request_->NotifySSLCertificateError(cert_error, ssl_info, must_be_fatal); |
| 237 } | 238 } |
| 238 | 239 |
| 239 bool URLRequestJob::CanGetCookies(const CookieList& cookie_list) const { | 240 bool URLRequestJob::CanGetCookies(const CookieList& cookie_list) const { |
| 240 if (!request_) | 241 if (!request_) |
| 241 return false; // The request was destroyed, so there is no more work to do. | 242 return false; // The request was destroyed, so there is no more work to do. |
| 242 | 243 |
| 243 return request_->CanGetCookies(cookie_list); | 244 return request_->CanGetCookies(cookie_list); |
| 244 } | 245 } |
| 245 | 246 |
| 246 bool URLRequestJob::CanSetCookie(const std::string& cookie_line, | 247 bool URLRequestJob::CanSetCookie(const std::string& cookie_line, |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 } | 697 } |
| 697 | 698 |
| 698 bool URLRequestJob::FilterHasData() { | 699 bool URLRequestJob::FilterHasData() { |
| 699 return filter_.get() && filter_->stream_data_len(); | 700 return filter_.get() && filter_->stream_data_len(); |
| 700 } | 701 } |
| 701 | 702 |
| 702 void URLRequestJob::UpdatePacketReadTimes() { | 703 void URLRequestJob::UpdatePacketReadTimes() { |
| 703 } | 704 } |
| 704 | 705 |
| 705 } // namespace net | 706 } // namespace net |
| OLD | NEW |