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

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

Issue 107893003: Make the renderer-side prerendering code use RenderFrames instead of RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: creis review comments 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/public/browser/web_contents_observer.h
===================================================================
--- content/public/browser/web_contents_observer.h (revision 239602)
+++ content/public/browser/web_contents_observer.h (working copy)
@@ -17,6 +17,7 @@
namespace content {
class NavigationEntry;
+class RenderFrameHost;
class RenderViewHost;
class WebContents;
class WebContentsImpl;
@@ -44,6 +45,13 @@
class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
public IPC::Sender {
public:
+ // Called when a RenderFrameHost associated with this WebContents is created.
+ virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
+
+ // Called whenever a RenderFrameHost associated with this WebContents is
+ // deleted.
+ virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
+
// Only one of the two methods below will be called when a RVH is created for
// a WebContents, depending on whether it's for an interstitial or not.
virtual void RenderViewCreated(RenderViewHost* render_view_host) {}

Powered by Google App Engine
This is Rietveld 408576698