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