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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CONTENT_EXPORT 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/security_style_explanations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/security_style_explanation.h
diff --git a/content/public/browser/security_style_explanation.h b/content/public/browser/security_style_explanation.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a0d8660b991427eee4f1f53667aa51efab92210
--- /dev/null
+++ b/content/public/browser/security_style_explanation.h
@@ -0,0 +1,32 @@
+// 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_EXPLANATION_H_
+#define CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// A human-readable summary phrase and more detailed description of a
+// security property that was used to compute the SecurityStyle of a
+// resource. An example summary phrase would be "Expired Certificate",
+// with a description along the lines of "This site's certificate chain
+// contains errors (net::CERT_DATE_INVALID)".
+struct SecurityStyleExplanation {
+ CONTENT_EXPORT SecurityStyleExplanation(){};
+ CONTENT_EXPORT SecurityStyleExplanation(const std::string& summary,
+ const std::string& description)
+ : summary(summary), description(description) {}
+ CONTENT_EXPORT ~SecurityStyleExplanation() {}
+
+ std::string summary;
+ std::string description;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/security_style_explanations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698