| 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 "content/browser/ssl/ssl_host_state.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 SSLHostState::SSLHostState() { | 9 SSLHostState::SSLHostState() { |
| 10 } | 10 } |
| 11 | 11 |
| 12 SSLHostState::~SSLHostState() { | 12 SSLHostState::~SSLHostState() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 void SSLHostState::HostRanInsecureContent(const std::string& host, int pid) { | 15 void SSLHostState::HostRanInsecureContent(const std::string& host, int pid) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 cert_policy_for_host_[host].Allow(cert); | 37 cert_policy_for_host_[host].Allow(cert); |
| 38 } | 38 } |
| 39 | 39 |
| 40 net::CertPolicy::Judgment SSLHostState::QueryPolicy( | 40 net::CertPolicy::Judgment SSLHostState::QueryPolicy( |
| 41 net::X509Certificate* cert, const std::string& host) { | 41 net::X509Certificate* cert, const std::string& host) { |
| 42 DCHECK(CalledOnValidThread()); | 42 DCHECK(CalledOnValidThread()); |
| 43 | 43 |
| 44 return cert_policy_for_host_[host].Check(cert); | 44 return cert_policy_for_host_[host].Check(cert); |
| 45 } | 45 } |
| OLD | NEW |