OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_ |
| 6 #define COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" |
| 11 |
| 12 namespace content { |
| 13 struct SecurityStyleExplanations; |
| 14 class WebContents; |
| 15 } // namespace content |
| 16 |
| 17 namespace security_state { |
| 18 struct SecurityInfo; |
| 19 struct VisibleSecurityState; |
| 20 } // namespace security_state |
| 21 |
| 22 namespace security_state { |
| 23 |
| 24 // Retrieves the visible security state that is relevant to GetSecurityInfo() |
| 25 // from the current page in |web_contents|. |
| 26 std::unique_ptr<security_state::VisibleSecurityState> GetVisibleSecurityState( |
| 27 content::WebContents* web_contents); |
| 28 |
| 29 // Returns the SecurityStyle that should be applied to a WebContents |
| 30 // with the given |security_info|. Populates |
| 31 // |security_style_explanations| to explain why the returned |
| 32 // SecurityStyle was chosen. |
| 33 blink::WebSecurityStyle GetSecurityStyle( |
| 34 const security_state::SecurityInfo& security_info, |
| 35 content::SecurityStyleExplanations* security_style_explanations); |
| 36 |
| 37 } // namespace security_state |
| 38 |
| 39 #endif // COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_ |
OLD | NEW |