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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 class UserMediaClientImpl; | 152 class UserMediaClientImpl; |
153 class WakeLockDispatcher; | 153 class WakeLockDispatcher; |
154 struct CommonNavigationParams; | 154 struct CommonNavigationParams; |
155 struct CustomContextMenuContext; | 155 struct CustomContextMenuContext; |
156 struct FrameReplicationState; | 156 struct FrameReplicationState; |
157 struct NavigationParams; | 157 struct NavigationParams; |
158 struct RequestNavigationParams; | 158 struct RequestNavigationParams; |
159 struct ResourceResponseHead; | 159 struct ResourceResponseHead; |
160 struct StartNavigationParams; | 160 struct StartNavigationParams; |
161 struct StreamOverrideParameters; | 161 struct StreamOverrideParameters; |
162 class VRDispatcher; | |
163 | 162 |
164 class CONTENT_EXPORT RenderFrameImpl | 163 class CONTENT_EXPORT RenderFrameImpl |
165 : public RenderFrame, | 164 : public RenderFrame, |
166 NON_EXPORTED_BASE(public blink::WebFrameClient), | 165 NON_EXPORTED_BASE(public blink::WebFrameClient), |
167 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { | 166 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { |
168 public: | 167 public: |
169 // Creates a new RenderFrame as the main frame of |render_view|. | 168 // Creates a new RenderFrame as the main frame of |render_view|. |
170 static RenderFrameImpl* CreateMainFrame( | 169 static RenderFrameImpl* CreateMainFrame( |
171 RenderViewImpl* render_view, | 170 RenderViewImpl* render_view, |
172 int32_t routing_id, | 171 int32_t routing_id, |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 const blink::WebString& title) override; | 612 const blink::WebString& title) override; |
614 void unregisterProtocolHandler(const blink::WebString& scheme, | 613 void unregisterProtocolHandler(const blink::WebString& scheme, |
615 const blink::WebURL& url) override; | 614 const blink::WebURL& url) override; |
616 blink::WebBluetooth* bluetooth() override; | 615 blink::WebBluetooth* bluetooth() override; |
617 void checkIfAudioSinkExistsAndIsAuthorized( | 616 void checkIfAudioSinkExistsAndIsAuthorized( |
618 const blink::WebString& sink_id, | 617 const blink::WebString& sink_id, |
619 const blink::WebSecurityOrigin& security_origin, | 618 const blink::WebSecurityOrigin& security_origin, |
620 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 619 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
621 blink::ServiceRegistry* serviceRegistry() override; | 620 blink::ServiceRegistry* serviceRegistry() override; |
622 | 621 |
623 #if defined(ENABLE_WEBVR) | |
624 blink::WebVRClient* webVRClient() override; | |
625 #endif | |
626 | |
627 // WebFrameSerializerClient implementation: | 622 // WebFrameSerializerClient implementation: |
628 void didSerializeDataForFrame( | 623 void didSerializeDataForFrame( |
629 const blink::WebCString& data, | 624 const blink::WebCString& data, |
630 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 625 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
631 override; | 626 override; |
632 | 627 |
633 // Binds this render frame's service registry. | 628 // Binds this render frame's service registry. |
634 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, | 629 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, |
635 shell::mojom::InterfaceProviderPtr exposed_services); | 630 shell::mojom::InterfaceProviderPtr exposed_services); |
636 | 631 |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 bool is_using_lofi_; | 1190 bool is_using_lofi_; |
1196 | 1191 |
1197 // Whether or not this RenderFrame is currently pasting. | 1192 // Whether or not this RenderFrame is currently pasting. |
1198 bool is_pasting_; | 1193 bool is_pasting_; |
1199 | 1194 |
1200 // Whether we must stop creating nested message loops for modal dialogs. This | 1195 // Whether we must stop creating nested message loops for modal dialogs. This |
1201 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the | 1196 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the |
1202 // stack that interferes with swapping out. | 1197 // stack that interferes with swapping out. |
1203 bool suppress_further_dialogs_; | 1198 bool suppress_further_dialogs_; |
1204 | 1199 |
1205 #if defined(ENABLE_WEBVR) | |
1206 // The VR dispatcher attached to the frame, lazily initialized. | |
1207 std::unique_ptr<VRDispatcher> vr_dispatcher_; | |
1208 #endif | |
1209 | |
1210 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1200 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1211 // The external popup for the currently showing select popup. | 1201 // The external popup for the currently showing select popup. |
1212 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; | 1202 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; |
1213 #endif | 1203 #endif |
1214 | 1204 |
1215 FrameBlameContext* blame_context_; // Not owned. | 1205 FrameBlameContext* blame_context_; // Not owned. |
1216 | 1206 |
1217 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1207 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1218 | 1208 |
1219 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1209 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1220 }; | 1210 }; |
1221 | 1211 |
1222 } // namespace content | 1212 } // namespace content |
1223 | 1213 |
1224 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1214 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |