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

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1413643002: Separate RenderViewHost from RenderWidgetHost, part 2: public implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
Index: content/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index db63ad57032ed7ffef9baf90e5fd1bfab9720866..7c8d754bd01ba434f412bdbaa974b6da2d61726c 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -93,14 +93,16 @@ struct FrameReplicationState;
//
// For context, please see https://crbug.com/467770 and
// http://www.chromium.org/developers/design-documents/site-isolation.
-class CONTENT_EXPORT RenderViewHostImpl
- : public RenderViewHost,
- public RenderWidgetHostImpl,
- public RenderProcessHostObserver {
+class CONTENT_EXPORT RenderViewHostImpl : public RenderViewHost,
+ RenderWidgetHostImpl,
+ public RenderProcessHostObserver {
public:
// Convenience function, just like RenderViewHost::FromID.
static RenderViewHostImpl* FromID(int render_process_id, int render_view_id);
+ // Convenience function, just like RenderViewHost::From.
+ static RenderViewHostImpl* From(RenderWidgetHost* rwh);
+
// |routing_id| must be a valid route id. |swapped_out| indicates
// whether the view should initially be swapped out (e.g., for an opener
// frame being rendered by another process). |hidden| indicates whether the
@@ -123,7 +125,7 @@ class CONTENT_EXPORT RenderViewHostImpl
// RenderViewHost implementation.
bool Send(IPC::Message* msg) override;
- RenderWidgetHost* GetWidget() const override;
+ RenderWidgetHostImpl* GetWidget() const override;
RenderProcessHost* GetProcess() const override;
int GetRoutingID() const override;
RenderFrameHost* GetMainFrame() override;
« no previous file with comments | « content/browser/renderer_host/input/touch_input_browsertest.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698