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

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

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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/content_shell.gypi ('k') | content/public/browser/web_contents.h » ('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
===================================================================
--- content/public/browser/render_frame_host.h (revision 241294)
+++ content/public/browser/render_frame_host.h (working copy)
@@ -10,13 +10,21 @@
#include "ipc/ipc_sender.h"
namespace content {
+class RenderProcessHost;
// 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 ID and the ID of its render process.
+ // Returns NULL if the IDs do not correspond to a live RenderFrameHost.
+ static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
+
virtual ~RenderFrameHost() {}
+ // Returns the process for this frame.
+ virtual RenderProcessHost* GetProcess() = 0;
+
// Returns the route id for this frame.
virtual int GetRoutingID() = 0;
« no previous file with comments | « content/content_shell.gypi ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698