| 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/ssl/ssl_host_state.h" | 8 #include "content/browser/ssl/ssl_host_state.h" |
| 8 #include "content/browser/web_contents/navigation_controller_impl.h" | |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 SSLPolicyBackend::SSLPolicyBackend(NavigationControllerImpl* controller) | 13 SSLPolicyBackend::SSLPolicyBackend(NavigationControllerImpl* controller) |
| 14 : ssl_host_state_(SSLHostState::GetFor(controller->GetBrowserContext())), | 14 : ssl_host_state_(SSLHostState::GetFor(controller->GetBrowserContext())), |
| 15 controller_(controller) { | 15 controller_(controller) { |
| 16 DCHECK(controller_); | 16 DCHECK(controller_); |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( | 41 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( |
| 42 net::X509Certificate* cert, | 42 net::X509Certificate* cert, |
| 43 const std::string& host, | 43 const std::string& host, |
| 44 net::CertStatus error) { | 44 net::CertStatus error) { |
| 45 return ssl_host_state_->QueryPolicy(cert, host, error); | 45 return ssl_host_state_->QueryPolicy(cert, host, error); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace content | 48 } // namespace content |
| OLD | NEW |