Chromium Code Reviews| Index: content/public/browser/web_contents_delegate.h |
| diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h |
| index f191672c9d9c21b3a98b07dc9bbd5e967c8b3dec..c3a5a5b642a1731af5019f49b80cb3c1dad79804 100644 |
| --- a/content/public/browser/web_contents_delegate.h |
| +++ b/content/public/browser/web_contents_delegate.h |
| @@ -38,6 +38,7 @@ class DownloadItem; |
| class JavaScriptDialogManager; |
| class PageState; |
| class RenderViewHost; |
| +struct SecurityStyleExplanations; |
|
Charlie Reis
2015/06/18 20:39:51
nit: List with the structs, not the classes.
estark
2015/06/18 23:13:26
Done.
|
| class SessionStorageNamespace; |
| class WebContents; |
| class WebContentsImpl; |
| @@ -486,9 +487,13 @@ class CONTENT_EXPORT WebContentsDelegate { |
| // default behavior is suppressed. |
| virtual bool SaveFrame(const GURL& url, const Referrer& referrer); |
| - // Can be overridden by a delegate to return the security style of the given |
| - // |web_contents|. Returns SECURITY_STYLE_UNKNOWN if not overriden. |
| - virtual SecurityStyle GetSecurityStyle(WebContents* web_contents); |
| + // Can be overridden by a delegate to return the security style of the |
| + // given |web_contents|, populating |security_style_explanations| to |
| + // explain why the SecurityStyle was downgraded. Returns |
| + // SECURITY_STYLE_UNKNOWN if not overriden. |
| + virtual SecurityStyle GetSecurityStyle( |
| + WebContents* web_contents, |
| + SecurityStyleExplanations* security_style_explanations); |
| protected: |
| virtual ~WebContentsDelegate(); |