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

Unified Diff: content/public/browser/security_style_explanations.h

Issue 2542533004: Override DevTools security summary when a Safe Browsing warning shows. (Closed)
Patch Set: Address review feedback Created 4 years 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: content/public/browser/security_style_explanations.h
diff --git a/content/public/browser/security_style_explanations.h b/content/public/browser/security_style_explanations.h
index b97aa6016bb95f2556380a4b7eb5ce2f12ea06b2..3033c2a10a718495275b8db71a4fda8f8af3c9df 100644
--- a/content/public/browser/security_style_explanations.h
+++ b/content/public/browser/security_style_explanations.h
@@ -27,6 +27,8 @@ namespace content {
// levels.
struct SecurityStyleExplanations {
CONTENT_EXPORT SecurityStyleExplanations();
+ CONTENT_EXPORT SecurityStyleExplanations(
+ const SecurityStyleExplanations& other);
CONTENT_EXPORT ~SecurityStyleExplanations();
// True if the page was loaded over HTTPS and ran mixed (HTTP) content
@@ -63,6 +65,10 @@ struct SecurityStyleExplanations {
// True if PKP was bypassed due to a local trust anchor.
bool pkp_bypassed;
+ // User-visible summary of the security style, set only when
+ // the style cannot be determined from HTTPS status alone.
+ std::string summary;
+
// Explanations corresponding to each security level. The embedder should
// display explanations in the order: broken, unauthenticated, secure, info.
std::vector<SecurityStyleExplanation> secure_explanations;
« no previous file with comments | « content/browser/devtools/protocol/security_handler.cc ('k') | content/public/browser/security_style_explanations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698