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

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: Rebased onto latest master. Created 5 years, 7 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: 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..71a65f16d118283a4573f5d7909af7a73d081a44 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,12 @@ class ConnectionSecurityHelper {
static SecurityLevel GetSecurityLevelForWebContents(
const content::WebContents* web_contents);
+ // Returns the security level from GetSecurityLevelForWebContents(),
+ // translated to a SecurityStyle so that lower layers can use it. In most
+ // cases, you should use GetSecurityLevelForWebContents() directly instead.
Ryan Sleevi 2015/06/03 23:43:52 nit: "pronouns in comments considered harmful" (se
lgarron 2015/06/04 00:26:34 I admit that I don't have practice writing this ki
+ 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') | chrome/browser/ssl/connection_security_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698