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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class WebGeolocationClient; | 59 class WebGeolocationClient; |
60 class WebMouseEvent; | 60 class WebMouseEvent; |
61 class WebContentDecryptionModule; | 61 class WebContentDecryptionModule; |
62 class WebMediaPlayer; | 62 class WebMediaPlayer; |
63 class WebPresentationClient; | 63 class WebPresentationClient; |
64 class WebPushClient; | 64 class WebPushClient; |
65 class WebSecurityOrigin; | 65 class WebSecurityOrigin; |
66 struct WebCompositionUnderline; | 66 struct WebCompositionUnderline; |
67 struct WebContextMenuData; | 67 struct WebContextMenuData; |
68 struct WebCursorInfo; | 68 struct WebCursorInfo; |
| 69 struct WebScreenInfo; |
69 } | 70 } |
70 | 71 |
71 namespace gfx { | 72 namespace gfx { |
72 class Point; | 73 class Point; |
73 class Range; | 74 class Range; |
74 class Rect; | 75 class Rect; |
75 } | 76 } |
76 | 77 |
77 namespace media { | 78 namespace media { |
78 class CdmFactory; | 79 class CdmFactory; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 struct StartNavigationParams; | 124 struct StartNavigationParams; |
124 struct StreamOverrideParameters; | 125 struct StreamOverrideParameters; |
125 class VRDispatcher; | 126 class VRDispatcher; |
126 | 127 |
127 class CONTENT_EXPORT RenderFrameImpl | 128 class CONTENT_EXPORT RenderFrameImpl |
128 : public RenderFrame, | 129 : public RenderFrame, |
129 NON_EXPORTED_BASE(public blink::WebFrameClient), | 130 NON_EXPORTED_BASE(public blink::WebFrameClient), |
130 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 131 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
131 public: | 132 public: |
132 // Creates a new RenderFrame as the main frame of |render_view|. | 133 // Creates a new RenderFrame as the main frame of |render_view|. |
133 static RenderFrameImpl* CreateMainFrame(RenderViewImpl* render_view, | 134 static RenderFrameImpl* CreateMainFrame( |
134 int32 routing_id); | 135 RenderViewImpl* render_view, |
| 136 int32 routing_id, |
| 137 int32 widget_routing_id, |
| 138 int32 surface_id, |
| 139 bool hidden, |
| 140 const blink::WebScreenInfo& screen_info, |
| 141 CompositorDependencies* compositor_deps); |
135 | 142 |
136 // Creates a new RenderFrame with |routing_id| as a child of the RenderFrame | 143 // Creates a new RenderFrame with |routing_id| as a child of the RenderFrame |
137 // identified by |parent_routing_id| or as the top-level frame if the latter | 144 // identified by |parent_routing_id| or as the top-level frame if the latter |
138 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates | 145 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates |
139 // the Blink WebLocalFrame and inserts it into the frame tree after the frame | 146 // the Blink WebLocalFrame and inserts it into the frame tree after the frame |
140 // identified by |previous_sibling_routing_id|, or as the first child if | 147 // identified by |previous_sibling_routing_id|, or as the first child if |
141 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is | 148 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is |
142 // semi-orphaned until it commits, at which point it replaces the proxy | 149 // semi-orphaned until it commits, at which point it replaces the proxy |
143 // identified by |proxy_routing_id|. Note: This is called only when | 150 // identified by |proxy_routing_id|. Note: This is called only when |
144 // RenderFrame is being created in response to IPC message from the browser | 151 // RenderFrame is being created in response to IPC message from the browser |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 #endif | 1046 #endif |
1040 | 1047 |
1041 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1048 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1042 | 1049 |
1043 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1050 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1044 }; | 1051 }; |
1045 | 1052 |
1046 } // namespace content | 1053 } // namespace content |
1047 | 1054 |
1048 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1055 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |