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

Unified Diff: content/public/renderer/render_view_observer.h

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/render_view_observer.h
===================================================================
--- content/public/renderer/render_view_observer.h (revision 104727)
+++ content/public/renderer/render_view_observer.h (working copy)
@@ -79,13 +79,17 @@
virtual void ContextMenuAction(unsigned id) {}
virtual void Navigate(const GURL& url) {}
+ // IPC::Channel::Listener implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message);
+
+ // This is called by the RenderView when it's going away so that this object
+ // can null out its pointer.
+ void RenderViewGone();
+
protected:
explicit RenderViewObserver(RenderView* render_view);
virtual ~RenderViewObserver();
- // IPC::Channel::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
// IPC::Message::Sender implementation.
virtual bool Send(IPC::Message* message);
@@ -93,11 +97,8 @@
int routing_id() { return routing_id_; }
private:
- friend class ::RenderView;
- void set_render_view(::RenderView* rv);
-
- ::RenderView* render_view_;
+ RenderView* render_view_;
// The routing ID of the associated RenderView.
int routing_id_;
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698