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

Unified Diff: content/common/security_style_util.h

Issue 2296953004: Send certificates to devtools when it's open instead of using certId (Closed)
Patch Set: self review Created 4 years, 3 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/common/resource_messages.h ('k') | content/common/security_style_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/security_style_util.h
diff --git a/content/common/security_style_util.h b/content/common/security_style_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..81aa1645a32067bbefa9bd2177eb5e87332aee7e
--- /dev/null
+++ b/content/common/security_style_util.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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_COMMON_SECURITY_STYLE_UTIL_H_
+#define CONTENT_COMMON_SECURITY_STYLE_UTIL_H_
+
+#include "content/public/common/security_style.h"
+#include "net/cert/cert_status_flags.h"
+
+class GURL;
+
+namespace content {
+
+// Returns a security style describing an individual resource. Does
+// not take into account any of the page- or host-level state such as
+// mixed content or whether the host has run insecure content.
+SecurityStyle GetSecurityStyleForResource(const GURL& url,
+ bool has_certificate,
+ net::CertStatus cert_status);
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SECURITY_STYLE_UTIL_H_
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/security_style_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698