Index: content/public/renderer/render_frame_observer.h |
=================================================================== |
--- content/public/renderer/render_frame_observer.h (revision 240912) |
+++ content/public/renderer/render_frame_observer.h (working copy) |
@@ -11,6 +11,10 @@ |
#include "ipc/ipc_listener.h" |
#include "ipc/ipc_sender.h" |
+namespace blink { |
+class WebFrame; |
+} |
+ |
namespace content { |
class RendererPpapiHost; |
@@ -29,6 +33,17 @@ |
// Called when a Pepper plugin is created. |
virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
+ // Called when the WebFrame associated with the RenderFrame is created. |
+ // When switches::kSitePerProcess is the default, there will be one |
+ // RenderFrame per blink::WebFrame. If it's not set though, a RenderFrame can |
+ // be used for more than one blink::WebFrame. In that case, this can be called |
+ // more than once. |
+ virtual void WebFrameCreated(blink::WebFrame* frame) {} |
+ |
+ // These match the Blink API notifications |
+ virtual void DidCommitProvisionalLoad(blink::WebFrame* frame, |
+ bool is_new_navigation) {} |
+ |
// IPC::Listener implementation. |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |