Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2255)

Unified Diff: chrome/browser/ssl/chrome_security_state_model_client.h

Issue 1986953002: Move SecurityStyleChanged logic and tests to chrome/browser/ssl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/chrome_security_state_model_client.h
diff --git a/chrome/browser/ssl/chrome_security_state_model_client.h b/chrome/browser/ssl/chrome_security_state_model_client.h
index 4ea52792f4d8453016f2b4002a97514b3044206f..5f47465b9a14e34571a00d77a6e48c0f9c0f5e19 100644
--- a/chrome/browser/ssl/chrome_security_state_model_client.h
+++ b/chrome/browser/ssl/chrome_security_state_model_client.h
@@ -11,8 +11,10 @@
#include "components/security_state/security_state_model.h"
#include "components/security_state/security_state_model_client.h"
#include "content/public/browser/web_contents_user_data.h"
+#include "content/public/common/security_style.h"
namespace content {
+struct SecurityStyleExplanations;
class WebContents;
} // namespace content
@@ -27,6 +29,14 @@ class ChromeSecurityStateModelClient
const security_state::SecurityStateModel::SecurityInfo& GetSecurityInfo()
const;
+ // Returns the SecurityStyle that should be applied to a WebContents
+ // with the given |security_info|. Populates
+ // |security_style_explanations| to explain why the returned
+ // SecurityStyle was chosen.
+ static content::SecurityStyle GetSecurityStyle(
+ const security_state::SecurityStateModel::SecurityInfo& security_info,
+ content::SecurityStyleExplanations* security_style_explanations);
+
// SecurityStateModelClient:
void GetVisibleSecurityState(
security_state::SecurityStateModel::VisibleSecurityState* state) override;
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698