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

Unified Diff: content/public/renderer/render_frame_observer.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/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;

Powered by Google App Engine
This is Rietveld 408576698