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

Unified Diff: chrome/browser/ssl/connection_security_helper.h

Issue 1162663004: Introduce browser-side plumbing for sending the lock icon status to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | chrome/browser/ssl/connection_security_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/connection_security_helper.h
diff --git a/chrome/browser/ssl/connection_security_helper.h b/chrome/browser/ssl/connection_security_helper.h
index 3a34b567b977705b2b60567125bca354fa46b8d3..befba710b9a1e042faf1241e1a756700c823472a 100644
--- a/chrome/browser/ssl/connection_security_helper.h
+++ b/chrome/browser/ssl/connection_security_helper.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_
#include "base/macros.h"
+#include "content/public/common/security_style.h"
namespace content {
class WebContents;
@@ -52,6 +53,17 @@ class ConnectionSecurityHelper {
static SecurityLevel GetSecurityLevelForWebContents(
const content::WebContents* web_contents);
+ // Returns the content::SecurityStyle for the given |web_contents|.
+ // Note: This is a lossy operation. Not all of the policies
+ // that can be expressed by a SecurityLevel (a //chrome concept) can
+ // be expressed by a content::SecurityStyle.
+ // In general, code in //chrome should prefer to use
+ // GetSecurityLevelForWebContents() to determine security policy, and
+ // only use this function when policy needs to be supplied back to
+ // layers in //content.
+ static content::SecurityStyle GetSecurityStyleForWebContents(
+ const content::WebContents* web_contents);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ConnectionSecurityHelper);
};
« no previous file with comments | « no previous file | chrome/browser/ssl/connection_security_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698