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

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: 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_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..0246a64c5bea7402c8b625373ea4aa3f7f198703
--- /dev/null
+++ b/content/public/browser/security_style_explanation.h
@@ -0,0 +1,29 @@
+// 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>
+
+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 {
+ SecurityStyleExplanation();
+ SecurityStyleExplanation(const std::string& summary,
+ const std::string& description);
+ ~SecurityStyleExplanation();
+
+ std::string summary;
+ std::string description;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_

Powered by Google App Engine
This is Rietveld 408576698