Chromium Code Reviews| Index: content/public/browser/render_view_host.h |
| diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h |
| index da8b15305e5442c3eae120c20d0ce139b5c9c471..2ef1453a12b754aea93cecfb3a97793601c06286 100644 |
| --- a/content/public/browser/render_view_host.h |
| +++ b/content/public/browser/render_view_host.h |
| @@ -33,6 +33,7 @@ struct WebPluginAction; |
| namespace content { |
| +class ChildProcessSecurityPolicy; |
| class RenderViewHostDelegate; |
| class SessionStorageNamespace; |
| class SiteInstance; |
| @@ -60,6 +61,13 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { |
| // because RenderWidgetHost is a virtual base class. |
| static RenderViewHost* From(RenderWidgetHost* rwh); |
| + // Checks that the given renderer can request |url|, if not it sets it to |
| + // about:blank. |
| + // empty_allowed must be set to false for navigations for security reasons. |
|
joth
2012/06/13 22:32:49
nit: |empty_allowed|
mkosiba (inactive)
2012/06/15 11:05:36
Done.
|
| + static void FilterURL(int renderer_id, |
| + bool empty_allowed, |
| + GURL* url); |
| + |
| virtual ~RenderViewHost() {} |
| // Tell the render view to enable a set of javascript bindings. The argument |