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() {} |
}; |