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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Minor changes from nasko@'s comments Created 3 years, 10 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/browser/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index 4b6ac1e807e8e9042092c983496d5bf2476bc635..c863b0044a49b2f872438a596d6c03bf89a3af47 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -41,6 +41,10 @@ namespace gfx {
class Rect;
}
+namespace url {
+class Origin;
+}
+
namespace content {
class FrameTreeNode;
class InterstitialPage;
@@ -271,6 +275,21 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
const gfx::Rect& initial_rect,
bool user_gesture) {}
+ // Notifies that mixed content was displayed or ran.
+ virtual void DidDisplayInsecureContent() {}
+ virtual void DidRunInsecureContent(const GURL& security_origin,
+ const GURL& target_url) {}
+
+ // Reports that passive mixed content was found at the specified url.
+ virtual void PassiveInsecureContentFound(const GURL& resource_url) {}
+
+ // Checks if running of active mixed content is allowed for the specified
+ // WebContents/tab.
+ virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents,
+ bool allowed_per_prefs,
+ const url::Origin& origin,
+ const GURL& resource_url);
+
protected:
virtual ~RenderFrameHostDelegate() {}
};
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698