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

Unified Diff: content/public/browser/web_contents_delegate.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: 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 66439dfccb72266609ee0ecbcf25162694b10973..ed4fe73202d38d988236f4307d873eeb8be629af 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -15,6 +15,7 @@
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/navigation_type.h"
#include "content/public/common/media_stream_request.h"
+#include "content/public/common/security_style.h"
#include "content/public/common/window_container_type.h"
#include "third_party/WebKit/public/platform/WebDisplayMode.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
@@ -485,6 +486,10 @@ 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(const WebContents* web_contents);
+
protected:
virtual ~WebContentsDelegate();

Powered by Google App Engine
This is Rietveld 408576698