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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
Index: content/browser/frame_host/render_frame_host_delegate.h
===================================================================
--- content/browser/frame_host/render_frame_host_delegate.h (revision 240912)
+++ content/browser/frame_host/render_frame_host_delegate.h (working copy)
@@ -13,6 +13,7 @@
namespace content {
class RenderFrameHost;
+class WebContents;
// An interface implemented by an object interested in knowing about the state
// of the RenderFrameHost.
@@ -28,6 +29,10 @@
// Informs the delegate whenever a RenderFrameHost is deleted.
virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
+ // Return this object cast to a WebContents, if it is one. If the object is
+ // not a WebContents, returns NULL.
nasko 2013/12/16 19:47:37 RenderViewHostDelegate has(had?) identical method
jam 2013/12/16 20:26:48 I had added that comment, but afterwards realized
+ virtual WebContents* GetAsWebContents();
+
protected:
virtual ~RenderFrameHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698