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

Unified Diff: content/renderer/render_view_observer.h

Issue 6873040: Move the content settings code out of RenderView, since it belongs in the Chrome layer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/renderer/render_view_observer.h
===================================================================
--- content/renderer/render_view_observer.h (revision 81920)
+++ content/renderer/render_view_observer.h (working copy)
@@ -64,6 +64,12 @@
const WebKit::WebString& property_name,
unsigned long long event_id) {}
virtual void FocusedNodeChanged(const WebKit::WebNode& node) {}
+ // If any observer returns false, then the request will be denied.
+ virtual bool AllowImages(WebKit::WebFrame* frame, bool enabled_per_settings);
+ virtual bool AllowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings);
+ virtual bool AllowScript(WebKit::WebFrame* frame, bool enabled_per_settings);
+ virtual void DidNotAllowPlugins(WebKit::WebFrame* frame) {}
+ virtual void DidNotAllowScript(WebKit::WebFrame* frame) {}
// These match the RenderView methods.
virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}

Powered by Google App Engine
This is Rietveld 408576698