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

Unified Diff: content/renderer/render_frame_impl.h

Issue 17114006: Implement WebFrameClient in RenderFrame and proxy all calls to RenderView (for now). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and cleanup. Created 7 years, 6 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 | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 378ec0668f18129b705ad993c668c3d551eaffa2..c1f1f2869d666c48bc56d1d8b890262396fe7d57 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -19,7 +19,15 @@ class CONTENT_EXPORT RenderFrameImpl
: public RenderFrame,
NON_EXPORTED_BASE(public WebKit::WebFrameClient) {
public:
- RenderFrameImpl(RenderViewImpl* render_view, int routing_id);
+ // Creates a new RenderFrame. |render_view| is the RenderView object that this
+ // frame belongs to.
+ static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id);
+
+ // Used by content_layouttest_support to hook into the creation of
+ // RenderFrameImpls.
+ static void InstallCreateHook(
+ RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32));
jam 2013/06/20 19:25:39 nit: why isn't this a callback?
nasko 2013/06/20 20:25:42 In general, I've tried to keep the same pattern th
jam 2013/06/20 21:40:09 ah. just saw that. is that RVImpl one going away a
+
virtual ~RenderFrameImpl();
// IPC::Sender
@@ -208,6 +216,9 @@ class CONTENT_EXPORT RenderFrameImpl
// RenderFrameImpl methods
int routing_id() { return routing_id_; }
+ protected:
+ RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
+
private:
RenderViewImpl* render_view_;
int routing_id_;
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698