| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 void unregisterProtocolHandler(const blink::WebString& scheme, | 615 void unregisterProtocolHandler(const blink::WebString& scheme, |
| 617 const blink::WebURL& url) override; | 616 const blink::WebURL& url) override; |
| 618 blink::WebBluetooth* bluetooth() override; | 617 blink::WebBluetooth* bluetooth() override; |
| 619 blink::WebUSBClient* usbClient() override; | 618 blink::WebUSBClient* usbClient() override; |
| 620 void checkIfAudioSinkExistsAndIsAuthorized( | 619 void checkIfAudioSinkExistsAndIsAuthorized( |
| 621 const blink::WebString& sink_id, | 620 const blink::WebString& sink_id, |
| 622 const blink::WebSecurityOrigin& security_origin, | 621 const blink::WebSecurityOrigin& security_origin, |
| 623 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 622 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
| 624 blink::ServiceRegistry* serviceRegistry() override; | 623 blink::ServiceRegistry* serviceRegistry() override; |
| 625 | 624 |
| 626 #if defined(ENABLE_WEBVR) | |
| 627 blink::WebVRClient* webVRClient() override; | |
| 628 #endif | |
| 629 | |
| 630 // WebFrameSerializerClient implementation: | 625 // WebFrameSerializerClient implementation: |
| 631 void didSerializeDataForFrame( | 626 void didSerializeDataForFrame( |
| 632 const blink::WebCString& data, | 627 const blink::WebCString& data, |
| 633 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 628 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
| 634 override; | 629 override; |
| 635 | 630 |
| 636 // Binds this render frame's service registry. | 631 // Binds this render frame's service registry. |
| 637 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, | 632 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, |
| 638 shell::mojom::InterfaceProviderPtr exposed_services); | 633 shell::mojom::InterfaceProviderPtr exposed_services); |
| 639 | 634 |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 bool is_using_lofi_; | 1198 bool is_using_lofi_; |
| 1204 | 1199 |
| 1205 // Whether or not this RenderFrame is currently pasting. | 1200 // Whether or not this RenderFrame is currently pasting. |
| 1206 bool is_pasting_; | 1201 bool is_pasting_; |
| 1207 | 1202 |
| 1208 // Whether we must stop creating nested message loops for modal dialogs. This | 1203 // Whether we must stop creating nested message loops for modal dialogs. This |
| 1209 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the | 1204 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the |
| 1210 // stack that interferes with swapping out. | 1205 // stack that interferes with swapping out. |
| 1211 bool suppress_further_dialogs_; | 1206 bool suppress_further_dialogs_; |
| 1212 | 1207 |
| 1213 #if defined(ENABLE_WEBVR) | |
| 1214 // The VR dispatcher attached to the frame, lazily initialized. | |
| 1215 std::unique_ptr<VRDispatcher> vr_dispatcher_; | |
| 1216 #endif | |
| 1217 | |
| 1218 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1208 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1219 // The external popup for the currently showing select popup. | 1209 // The external popup for the currently showing select popup. |
| 1220 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; | 1210 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; |
| 1221 #endif | 1211 #endif |
| 1222 | 1212 |
| 1223 FrameBlameContext* blame_context_; // Not owned. | 1213 FrameBlameContext* blame_context_; // Not owned. |
| 1224 | 1214 |
| 1225 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1215 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1226 | 1216 |
| 1227 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1217 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1228 }; | 1218 }; |
| 1229 | 1219 |
| 1230 } // namespace content | 1220 } // namespace content |
| 1231 | 1221 |
| 1232 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1222 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |