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

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: remove unnecessary namespace 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
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..af628bcc7e765dcb6eb81d10fea1b65cb4f725da 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,13 @@ class ChromeSecurityStateModelClient
const security_state::SecurityStateModel::SecurityInfo& GetSecurityInfo()
const;
+ // Returns the SecurityStyle that should be applied to the given
+ // |web_contents|. Populates |security_style_explanations| to explain
+ // why the returned SecurityStyle was chosen.
+ content::SecurityStyle GetSecurityStyle(
+ content::WebContents* web_contents,
+ content::SecurityStyleExplanations* security_style_explanations);
+
// SecurityStateModelClient:
void GetVisibleSecurityState(
security_state::SecurityStateModel::VisibleSecurityState* state) override;

Powered by Google App Engine
This is Rietveld 408576698