OLD | NEW |
---|---|
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 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 #if defined(OS_ANDROID) | 38 #if defined(OS_ANDROID) |
39 #include "content/renderer/media/android/renderer_media_player_manager.h" | 39 #include "content/renderer/media/android/renderer_media_player_manager.h" |
40 #endif | 40 #endif |
41 | 41 |
42 class GURL; | 42 class GURL; |
43 class TransportDIB; | 43 class TransportDIB; |
44 struct FrameHostMsg_AddNavigationTransitionData_Params; | 44 struct FrameHostMsg_AddNavigationTransitionData_Params; |
45 struct FrameMsg_Navigate_Params; | 45 struct FrameMsg_Navigate_Params; |
46 struct FrameMsg_RequestNavigation_Params; | 46 struct FrameMsg_RequestNavigation_Params; |
47 struct FrameMsg_NewFrame_WidgetParams; | |
Charlie Reis
2014/12/18 18:04:14
nit: Alphabetize
kenrb
2015/01/05 21:15:31
Done.
| |
47 | 48 |
48 namespace blink { | 49 namespace blink { |
49 class WebGeolocationClient; | 50 class WebGeolocationClient; |
50 class WebMouseEvent; | 51 class WebMouseEvent; |
51 class WebContentDecryptionModule; | 52 class WebContentDecryptionModule; |
52 class WebMediaPlayer; | 53 class WebMediaPlayer; |
53 class WebPushClient; | 54 class WebPushClient; |
54 class WebSecurityOrigin; | 55 class WebSecurityOrigin; |
55 struct WebCompositionUnderline; | 56 struct WebCompositionUnderline; |
56 struct WebContextMenuData; | 57 struct WebContextMenuData; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 // identified by |parent_routing_id| or as the top-level frame if the latter | 112 // identified by |parent_routing_id| or as the top-level frame if the latter |
112 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates | 113 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates |
113 // the Blink WebLocalFrame and inserts it in the proper place in the frame | 114 // the Blink WebLocalFrame and inserts it in the proper place in the frame |
114 // tree. Otherwise, the frame is semi-orphaned until it commits, at which | 115 // tree. Otherwise, the frame is semi-orphaned until it commits, at which |
115 // point it replaces the proxy identified by |proxy_routing_id|. | 116 // point it replaces the proxy identified by |proxy_routing_id|. |
116 // Note: This is called only when RenderFrame is being created in response to | 117 // Note: This is called only when RenderFrame is being created in response to |
117 // IPC message from the browser process. All other frame creation is driven | 118 // IPC message from the browser process. All other frame creation is driven |
118 // through Blink and Create. | 119 // through Blink and Create. |
119 static void CreateFrame(int routing_id, | 120 static void CreateFrame(int routing_id, |
120 int parent_routing_id, | 121 int parent_routing_id, |
121 int proxy_routing_id); | 122 int proxy_routing_id, |
123 const FrameMsg_NewFrame_WidgetParams& params); | |
122 | 124 |
123 // Returns the RenderFrameImpl for the given routing ID. | 125 // Returns the RenderFrameImpl for the given routing ID. |
124 static RenderFrameImpl* FromRoutingID(int routing_id); | 126 static RenderFrameImpl* FromRoutingID(int routing_id); |
125 | 127 |
126 // Just like RenderFrame::FromWebFrame but returns the implementation. | 128 // Just like RenderFrame::FromWebFrame but returns the implementation. |
127 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); | 129 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); |
128 | 130 |
129 // Used by content_layouttest_support to hook into the creation of | 131 // Used by content_layouttest_support to hook into the creation of |
130 // RenderFrameImpls. | 132 // RenderFrameImpls. |
131 using CreateRenderFrameImplFunction = RenderFrameImpl* (*)(RenderViewImpl*, | 133 using CreateRenderFrameImplFunction = RenderFrameImpl* (*)(RenderViewImpl*, |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
712 // RenderFrame. See https://crbug.com/357747. | 714 // RenderFrame. See https://crbug.com/357747. |
713 RenderFrameProxy* render_frame_proxy_; | 715 RenderFrameProxy* render_frame_proxy_; |
714 bool is_detaching_; | 716 bool is_detaching_; |
715 | 717 |
716 // If this frame was created to replace a proxy, this will store the routing | 718 // If this frame was created to replace a proxy, this will store the routing |
717 // id of the proxy to replace at commit-time, at which time it will be | 719 // id of the proxy to replace at commit-time, at which time it will be |
718 // cleared. | 720 // cleared. |
719 // TODO(creis): Remove this after switching to PlzNavigate. | 721 // TODO(creis): Remove this after switching to PlzNavigate. |
720 int proxy_routing_id_; | 722 int proxy_routing_id_; |
721 | 723 |
724 // Used when the RenderFrame is a local frame root; for now RenderWidgets are | |
nasko
2014/12/17 22:51:30
nit: s/local frame root/local root/
Charlie Reis
2014/12/18 18:04:14
nit: Split into two sentences rather than using a
kenrb
2015/01/05 21:15:31
Done.
| |
725 // added only when a child frame is in a different process from its parent | |
726 // frame, but eventually this will also apply to top-level frames. | |
727 // FIXME(kenrb): Correct the above statement when top-level frames have their | |
nasko
2014/12/17 22:51:30
nit: s/FIXME/TODO/
kenrb
2015/01/05 21:15:31
Done.
| |
728 // own RenderWidgets. | |
729 scoped_refptr<RenderWidget> render_widget_; | |
730 | |
722 #if defined(ENABLE_PLUGINS) | 731 #if defined(ENABLE_PLUGINS) |
723 // Current text input composition text. Empty if no composition is in | 732 // Current text input composition text. Empty if no composition is in |
724 // progress. | 733 // progress. |
725 base::string16 pepper_composition_text_; | 734 base::string16 pepper_composition_text_; |
726 | 735 |
727 PluginPowerSaverHelper* plugin_power_saver_helper_; | 736 PluginPowerSaverHelper* plugin_power_saver_helper_; |
728 #endif | 737 #endif |
729 | 738 |
730 RendererWebCookieJarImpl cookie_jar_; | 739 RendererWebCookieJarImpl cookie_jar_; |
731 | 740 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
827 #endif | 836 #endif |
828 | 837 |
829 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 838 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
830 | 839 |
831 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 840 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
832 }; | 841 }; |
833 | 842 |
834 } // namespace content | 843 } // namespace content |
835 | 844 |
836 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 845 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |