Index: content/public/renderer/render_view_observer.h |
diff --git a/content/public/renderer/render_view_observer.h b/content/public/renderer/render_view_observer.h |
index 84a7e4c69abab64f41d39ca065394dc97de005ca..dfd147ce388e3d466c5004a75b1d05cf2bbb31f1 100644 |
--- a/content/public/renderer/render_view_observer.h |
+++ b/content/public/renderer/render_view_observer.h |
@@ -109,6 +109,12 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener, |
explicit RenderViewObserver(RenderView* render_view); |
virtual ~RenderViewObserver(); |
+ // Sets |render_view_| to track. |
+ // Removes itself of previous (if any) |render_view_| observer list and adds |
+ // to the new |render_view|. Since it assumes that observer outlives |
+ // render_view, OnDestruct should be overridden. |
+ void Observe(RenderView* render_view); |
+ |
private: |
friend class RenderViewImpl; |