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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 404613005: Start using RenderFrameProxyHost objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 struct CustomContextMenuContext; 76 struct CustomContextMenuContext;
77 77
78 class CONTENT_EXPORT RenderFrameImpl 78 class CONTENT_EXPORT RenderFrameImpl
79 : public RenderFrame, 79 : public RenderFrame,
80 NON_EXPORTED_BASE(public blink::WebFrameClient), 80 NON_EXPORTED_BASE(public blink::WebFrameClient),
81 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) { 81 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) {
82 public: 82 public:
83 // Creates a new RenderFrame. |render_view| is the RenderView object that this 83 // Creates a new RenderFrame. |render_view| is the RenderView object that this
84 // frame belongs to. 84 // frame belongs to.
85 // Callers *must* call |SetWebFrame| immediately after creation. 85 // Callers *must* call |SetWebFrame| immediately after creation.
86 // Note: This is called only when RenderFrame is created by Blink through
87 // createChildFrame.
86 // TODO(creis): We should structure this so that |SetWebFrame| isn't needed. 88 // TODO(creis): We should structure this so that |SetWebFrame| isn't needed.
87 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id); 89 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id);
88 90
91 // Creates a new RenderFrame with |routing_id| as a child of the RenderFrame
92 // identified by |parent_routing_id| or as the top-level frame if
93 // MSG_ROUTING_NONE. It creates the Blink WebLocalFrame and inserts it in the
94 // proper place in the frame tree.
95 // Note: This is called only when RenderFrame is being created in response to
96 // IPC message from the browser process. All other frame creation is driven
97 // through Blink and Create.
98 static void CreateFrame(int routing_id, int parent_routing_id);
99
89 // Returns the RenderFrameImpl for the given routing ID. 100 // Returns the RenderFrameImpl for the given routing ID.
90 static RenderFrameImpl* FromRoutingID(int routing_id); 101 static RenderFrameImpl* FromRoutingID(int routing_id);
91 102
92 // Just like RenderFrame::FromWebFrame but returns the implementation. 103 // Just like RenderFrame::FromWebFrame but returns the implementation.
93 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); 104 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame);
94 105
95 // Used by content_layouttest_support to hook into the creation of 106 // Used by content_layouttest_support to hook into the creation of
96 // RenderFrameImpls. 107 // RenderFrameImpls.
97 static void InstallCreateHook( 108 static void InstallCreateHook(
98 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32)); 109 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32));
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 ScreenOrientationDispatcher* screen_orientation_dispatcher_; 676 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
666 677
667 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 678 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
668 679
669 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 680 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
670 }; 681 };
671 682
672 } // namespace content 683 } // namespace content
673 684
674 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 685 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698