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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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: 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
new file mode 100644
index 0000000000000000000000000000000000000000..84cbb7b29c2c4589f6f0be334c55bd8fca14507f
--- /dev/null
+++ b/content/public/browser/security_style_explanations.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_
+#define CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_
+
+#include <vector>
+
+#include "content/public/browser/security_style_explanation.h"
+
+namespace content {
+
+// SecurityStyleExplanations contains human-readable explanations for
+// why a particular SecurityStyle was chosen. Each
+// SecurityStyleExplanation is a single security property of a page (for
+// example, an expired certificate or the presence of active mixed
+// content). A single site may have multiple different explanations of
+// "warning" and "broken" severity levels.
+struct SecurityStyleExplanations {
+ SecurityStyleExplanations();
+ ~SecurityStyleExplanations();
+
+ std::vector<SecurityStyleExplanation> warning_explanations;
+ std::vector<SecurityStyleExplanation> broken_explanations;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_

Powered by Google App Engine
This is Rietveld 408576698