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

Unified Diff: content/public/browser/render_widget_host.h

Issue 16431010: Refactor RenderProcessHost to use IPC::Listener instead of RenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cleanup crashes. Created 7 years, 6 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/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 79a3935eff0a36697627d317cc9730b83547cbcb..2b3bd2ccfaf67edb491cf22505ba297f453180c6 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -35,9 +35,12 @@ struct WebScreenInfo;
namespace content {
class RenderProcessHost;
+class RenderWidgetHost;
class RenderWidgetHostImpl;
class RenderWidgetHostView;
+typedef std::vector<RenderWidgetHost*> RenderWidgetHostList;
dcheng 2013/06/11 00:34:58 I think this typedef is unused.
+
// A RenderWidgetHost manages the browser side of a browser<->renderer
// HWND connection. The HWND lives in the browser process, and
// windows events are sent over IPC to the corresponding object in the
@@ -117,6 +120,13 @@ 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;
+ static scoped_ptr<RenderWidgetHost::List> GetRenderWidgetHosts();
+
virtual ~RenderWidgetHost() {}
// Edit operations.

Powered by Google App Engine
This is Rietveld 408576698