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 "content/browser/ssl/ssl_policy_backend.h" | 5 #include "content/browser/ssl/ssl_policy_backend.h" |
6 | 6 |
7 #include "content/browser/frame_host/navigation_controller_impl.h" | 7 #include "content/browser/frame_host/navigation_controller_impl.h" |
8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/ssl_host_state_delegate.h" | 9 #include "content/public/browser/ssl_host_state_delegate.h" |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert, | 41 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert, |
42 const std::string& host, | 42 const std::string& host, |
43 net::CertStatus error) { | 43 net::CertStatus error) { |
44 if (ssl_host_state_delegate_) | 44 if (ssl_host_state_delegate_) |
45 ssl_host_state_delegate_->AllowCert(host, cert, error); | 45 ssl_host_state_delegate_->AllowCert(host, cert, error); |
46 } | 46 } |
47 | 47 |
48 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( | 48 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( |
49 net::X509Certificate* cert, | 49 net::X509Certificate* cert, |
50 const std::string& host, | 50 const std::string& host, |
51 net::CertStatus error) { | 51 net::CertStatus error, |
| 52 bool* expired_previous_decision) { |
52 if (!ssl_host_state_delegate_) | 53 if (!ssl_host_state_delegate_) |
53 return net::CertPolicy::UNKNOWN; | 54 return net::CertPolicy::UNKNOWN; |
54 | 55 |
55 return ssl_host_state_delegate_->QueryPolicy(host, cert, error); | 56 return ssl_host_state_delegate_->QueryPolicy( |
| 57 host, cert, error, expired_previous_decision); |
56 } | 58 } |
57 | 59 |
58 } // namespace content | 60 } // namespace content |
OLD | NEW |