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

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

Issue 2542533004: Override DevTools security summary when a Safe Browsing warning shows. (Closed)
Patch Set: Redefine event parameter (optional instead of nullable) for Closure Compiler 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..c93f4964dbe212b28df245a3ea30274d96116223 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,9 @@ struct SecurityStyleExplanations {
// True if PKP was bypassed due to a local trust anchor.
bool pkp_bypassed;
+ // User-visible summary of the security style.
+ 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;

Powered by Google App Engine
This is Rietveld 408576698