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.h" | 5 #include "net/url_request/url_request.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 } | 839 } |
840 } | 840 } |
841 | 841 |
842 void URLRequest::NotifyCertificateRequested( | 842 void URLRequest::NotifyCertificateRequested( |
843 SSLCertRequestInfo* cert_request_info) { | 843 SSLCertRequestInfo* cert_request_info) { |
844 if (delegate_) | 844 if (delegate_) |
845 delegate_->OnCertificateRequested(this, cert_request_info); | 845 delegate_->OnCertificateRequested(this, cert_request_info); |
846 } | 846 } |
847 | 847 |
848 void URLRequest::NotifySSLCertificateError(const SSLInfo& ssl_info, | 848 void URLRequest::NotifySSLCertificateError(const SSLInfo& ssl_info, |
849 bool is_hsts_host) { | 849 bool fatal) { |
850 if (delegate_) | 850 if (delegate_) |
851 delegate_->OnSSLCertificateError(this, ssl_info, is_hsts_host); | 851 delegate_->OnSSLCertificateError(this, ssl_info, fatal); |
852 } | 852 } |
853 | 853 |
854 bool URLRequest::CanGetCookies(const CookieList& cookie_list) const { | 854 bool URLRequest::CanGetCookies(const CookieList& cookie_list) const { |
855 if (delegate_) | 855 if (delegate_) |
856 return delegate_->CanGetCookies(this, cookie_list); | 856 return delegate_->CanGetCookies(this, cookie_list); |
857 return false; | 857 return false; |
858 } | 858 } |
859 | 859 |
860 bool URLRequest::CanSetCookie(const std::string& cookie_line, | 860 bool URLRequest::CanSetCookie(const std::string& cookie_line, |
861 CookieOptions* options) const { | 861 CookieOptions* options) const { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 | 895 |
896 void URLRequest::SetUnblockedOnDelegate() { | 896 void URLRequest::SetUnblockedOnDelegate() { |
897 if (!blocked_on_delegate_) | 897 if (!blocked_on_delegate_) |
898 return; | 898 return; |
899 blocked_on_delegate_ = false; | 899 blocked_on_delegate_ = false; |
900 load_state_param_.clear(); | 900 load_state_param_.clear(); |
901 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_BLOCKED_ON_DELEGATE, NULL); | 901 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_BLOCKED_ON_DELEGATE, NULL); |
902 } | 902 } |
903 | 903 |
904 } // namespace net | 904 } // namespace net |
OLD | NEW |