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

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

Issue 21388003: Move routing to RenderFrameHost instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move global map to .cc file. Created 7 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index a5a49f24ef25089fd218023b05f52bfa44abad7e..4512dfb287d49ecc22f7f4c1538c3a1661c2cdb7 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -11,9 +11,24 @@
namespace content {
+class RenderViewHost;
+
// The interface provides a communication conduit with a frame in the renderer.
class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
public IPC::Sender {
+ public:
+ // Returns the RenderFrameHost given its routing id and the id of its render
+ // process. Returns NULL if the ids do not correspond to a live
+ // RenderFrameHost.
+ static RenderFrameHost* FromID(int process_id, int routing_id);
+
+ virtual ~RenderFrameHost() {}
+
+ // Returns the RenderViewHost associated with this RenderFrameHost.
+ virtual RenderViewHost* GetRenderViewHost() const = 0;
+
+ virtual int GetRoutingID() const = 0;
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698