| 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);
|
| };
|
|
|