Index: content/public/browser/render_widget_host.h |
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h |
index d58ba8bc943fcaef66df56c44f4dbe8dff005536..5a4918db90205dedc99d04ebbf1c727cae0e89b4 100644 |
--- a/content/public/browser/render_widget_host.h |
+++ b/content/public/browser/render_widget_host.h |
@@ -117,6 +117,14 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender { |
static void AddCreatedCallback(const CreatedCallback& callback); |
static void RemoveCreatedCallback(const CreatedCallback& callback); |
+ // Returns the RenderWidgetHost given its ID and the ID of its render process. |
+ // Returns NULL if the IDs do not correspond to a live RenderWidgetHost. |
+ static RenderWidgetHost* FromID(int32 process_id, int32 routing_id); |
+ |
+ typedef std::vector<RenderWidgetHost*> List; |
+ // Returns the global list of render widget hosts. |
+ static RenderWidgetHost::List GetRenderWidgetHosts(); |
+ |
virtual ~RenderWidgetHost() {} |
// Edit operations. |