Chromium Code Reviews| 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 "components/security_state/core/security_state_model.h" | |
| 11 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" | |
| 12 | |
| 13 namespace content { | |
| 14 struct SecurityStyleExplanations; | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 namespace security_state_content_utils { | |
|
blundell
2016/11/01 23:29:01
nit: this should just be the namespace of the comp
Eric Seckler
2016/11/03 17:01:06
Done.
| |
| 19 | |
| 20 // Retrieves the visible security state that is relevant to the | |
| 21 // SecurityStateModel from the current page in |web_contents|. | |
| 22 std::unique_ptr<security_state::SecurityStateModel::VisibleSecurityState> | |
| 23 GetVisibleSecurityState(content::WebContents* web_contents); | |
| 24 | |
| 25 // Returns the SecurityStyle that should be applied to a WebContents | |
| 26 // with the given |security_info|. Populates | |
| 27 // |security_style_explanations| to explain why the returned | |
| 28 // SecurityStyle was chosen. | |
| 29 blink::WebSecurityStyle GetSecurityStyle( | |
| 30 const security_state::SecurityStateModel::SecurityInfo& security_info, | |
| 31 content::SecurityStyleExplanations* security_style_explanations); | |
| 32 | |
| 33 } // namespace security_state_content_utils | |
| 34 | |
| 35 #endif // COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_ | |
| OLD | NEW |