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

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

Issue 444503002: Start using RenderFrameProxyHost objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create view IFF frame is main frame Created 6 years, 4 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/common/frame_messages.h ('k') | content/renderer/render_frame_impl.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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 struct CustomContextMenuContext; 80 struct CustomContextMenuContext;
81 81
82 class CONTENT_EXPORT RenderFrameImpl 82 class CONTENT_EXPORT RenderFrameImpl
83 : public RenderFrame, 83 : public RenderFrame,
84 NON_EXPORTED_BASE(public blink::WebFrameClient), 84 NON_EXPORTED_BASE(public blink::WebFrameClient),
85 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) { 85 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) {
86 public: 86 public:
87 // Creates a new RenderFrame. |render_view| is the RenderView object that this 87 // Creates a new RenderFrame. |render_view| is the RenderView object that this
88 // frame belongs to. 88 // frame belongs to.
89 // Callers *must* call |SetWebFrame| immediately after creation. 89 // Callers *must* call |SetWebFrame| immediately after creation.
90 // Note: This is called only when RenderFrame is created by Blink through
91 // createChildFrame.
90 // TODO(creis): We should structure this so that |SetWebFrame| isn't needed. 92 // TODO(creis): We should structure this so that |SetWebFrame| isn't needed.
91 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id); 93 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id);
92 94
95 // Creates a new RenderFrame with |routing_id| as a child of the RenderFrame
96 // identified by |parent_routing_id| or as the top-level frame if the latter
97 // is MSG_ROUTING_NONE. It creates the Blink WebLocalFrame and inserts it in
98 // the proper place in the frame tree.
99 // Note: This is called only when RenderFrame is being created in response to
100 // IPC message from the browser process. All other frame creation is driven
101 // through Blink and Create.
102 static void CreateFrame(int routing_id, int parent_routing_id);
103
93 // Returns the RenderFrameImpl for the given routing ID. 104 // Returns the RenderFrameImpl for the given routing ID.
94 static RenderFrameImpl* FromRoutingID(int routing_id); 105 static RenderFrameImpl* FromRoutingID(int routing_id);
95 106
96 // Just like RenderFrame::FromWebFrame but returns the implementation. 107 // Just like RenderFrame::FromWebFrame but returns the implementation.
97 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); 108 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame);
98 109
99 // Used by content_layouttest_support to hook into the creation of 110 // Used by content_layouttest_support to hook into the creation of
100 // RenderFrameImpls. 111 // RenderFrameImpls.
101 static void InstallCreateHook( 112 static void InstallCreateHook(
102 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32)); 113 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32));
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 RendererAccessibility* renderer_accessibility_; 703 RendererAccessibility* renderer_accessibility_;
693 704
694 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 705 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
695 706
696 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 707 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
697 }; 708 };
698 709
699 } // namespace content 710 } // namespace content
700 711
701 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 712 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698