| Index: content/browser/frame_host/render_frame_host_delegate.h
|
| ===================================================================
|
| --- content/browser/frame_host/render_frame_host_delegate.h (revision 240362)
|
| +++ 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.
|
| + virtual WebContents* GetAsWebContents();
|
| +
|
| protected:
|
| virtual ~RenderFrameHostDelegate() {}
|
| };
|
|
|