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

Side by Side Diff: content/public/renderer/render_view_observer.h

Issue 1750863002: Revert of Separate RenderView from RenderWidget, part 1: inheritance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderwidgettest
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // render_view, OnDestruct should be overridden. 96 // render_view, OnDestruct should be overridden.
97 void Observe(RenderView* render_view); 97 void Observe(RenderView* render_view);
98 98
99 private: 99 private:
100 friend class RenderViewImpl; 100 friend class RenderViewImpl;
101 101
102 // This is called by the RenderView when it's going away so that this object 102 // This is called by the RenderView when it's going away so that this object
103 // can null out its pointer. 103 // can null out its pointer.
104 void RenderViewGone(); 104 void RenderViewGone();
105 105
106 RenderViewImpl* render_view_; 106 RenderView* render_view_;
107 // The routing ID of the associated RenderView. 107 // The routing ID of the associated RenderView.
108 int routing_id_; 108 int routing_id_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 110 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 115 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698