| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/ssl/ssl_host_state.h" | 5 #include "chrome/browser/ssl/ssl_host_state.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 cert_policy_for_host_[host].Deny(cert); | 47 cert_policy_for_host_[host].Deny(cert); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void SSLHostState::AllowCertForHost(net::X509Certificate* cert, | 50 void SSLHostState::AllowCertForHost(net::X509Certificate* cert, |
| 51 const std::string& host) { | 51 const std::string& host) { |
| 52 DCHECK(CalledOnValidThread()); | 52 DCHECK(CalledOnValidThread()); |
| 53 | 53 |
| 54 cert_policy_for_host_[host].Allow(cert); | 54 cert_policy_for_host_[host].Allow(cert); |
| 55 } | 55 } |
| 56 | 56 |
| 57 net::X509Certificate::Policy::Judgment SSLHostState::QueryPolicy( | 57 net::CertPolicy::Judgment SSLHostState::QueryPolicy( |
| 58 net::X509Certificate* cert, const std::string& host) { | 58 net::X509Certificate* cert, const std::string& host) { |
| 59 DCHECK(CalledOnValidThread()); | 59 DCHECK(CalledOnValidThread()); |
| 60 | 60 |
| 61 return cert_policy_for_host_[host].Check(cert); | 61 return cert_policy_for_host_[host].Check(cert); |
| 62 } | 62 } |
| OLD | NEW |