OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 // Returns NULL if the IDs do not correspond to a live RenderViewHost. | 59 // Returns NULL if the IDs do not correspond to a live RenderViewHost. |
60 static RenderViewHost* FromID(int render_process_id, int render_view_id); | 60 static RenderViewHost* FromID(int render_process_id, int render_view_id); |
61 | 61 |
62 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required | 62 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required |
63 // because RenderWidgetHost is a virtual base class. | 63 // because RenderWidgetHost is a virtual base class. |
64 static RenderViewHost* From(RenderWidgetHost* rwh); | 64 static RenderViewHost* From(RenderWidgetHost* rwh); |
65 | 65 |
66 // Checks that the given renderer can request |url|, if not it sets it to | 66 // Checks that the given renderer can request |url|, if not it sets it to |
67 // about:blank. | 67 // about:blank. |
68 // |empty_allowed| must be set to false for navigations for security reasons. | 68 // |empty_allowed| must be set to false for navigations for security reasons. |
69 static void FilterURL(int renderer_id, | 69 static void FilterURL(RenderProcessHost* process, |
Tom Sepez
2012/10/29 17:59:08
nit: is this const?
Charlie Reis
2012/10/29 18:18:31
Yep. Updated.
| |
70 bool empty_allowed, | 70 bool empty_allowed, |
71 GURL* url); | 71 GURL* url); |
72 | 72 |
73 virtual ~RenderViewHost() {} | 73 virtual ~RenderViewHost() {} |
74 | 74 |
75 // Tell the render view to enable a set of javascript bindings. The argument | 75 // Tell the render view to enable a set of javascript bindings. The argument |
76 // should be a combination of values from BindingsPolicy. | 76 // should be a combination of values from BindingsPolicy. |
77 virtual void AllowBindings(int binding_flags) = 0; | 77 virtual void AllowBindings(int binding_flags) = 0; |
78 | 78 |
79 // Tells the renderer to clear the focused node (if any). | 79 // Tells the renderer to clear the focused node (if any). |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
284 const WebKit::WebFindOptions& options, | 284 const WebKit::WebFindOptions& options, |
285 int* match_count, | 285 int* match_count, |
286 int* active_ordinal) = 0; | 286 int* active_ordinal) = 0; |
287 #endif | 287 #endif |
288 | 288 |
289 }; | 289 }; |
290 | 290 |
291 } // namespace content | 291 } // namespace content |
292 | 292 |
293 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 293 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |