| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 class UserMediaClientImpl; | 145 class UserMediaClientImpl; |
| 146 class WakeLockDispatcher; | 146 class WakeLockDispatcher; |
| 147 struct CommonNavigationParams; | 147 struct CommonNavigationParams; |
| 148 struct CustomContextMenuContext; | 148 struct CustomContextMenuContext; |
| 149 struct FrameReplicationState; | 149 struct FrameReplicationState; |
| 150 struct NavigationParams; | 150 struct NavigationParams; |
| 151 struct RequestNavigationParams; | 151 struct RequestNavigationParams; |
| 152 struct ResourceResponseHead; | 152 struct ResourceResponseHead; |
| 153 struct StartNavigationParams; | 153 struct StartNavigationParams; |
| 154 struct StreamOverrideParameters; | 154 struct StreamOverrideParameters; |
| 155 class VRDispatcher; | |
| 156 | 155 |
| 157 class CONTENT_EXPORT RenderFrameImpl | 156 class CONTENT_EXPORT RenderFrameImpl |
| 158 : public RenderFrame, | 157 : public RenderFrame, |
| 159 NON_EXPORTED_BASE(public blink::WebFrameClient), | 158 NON_EXPORTED_BASE(public blink::WebFrameClient), |
| 160 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { | 159 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { |
| 161 public: | 160 public: |
| 162 // Creates a new RenderFrame as the main frame of |render_view|. | 161 // Creates a new RenderFrame as the main frame of |render_view|. |
| 163 static RenderFrameImpl* CreateMainFrame( | 162 static RenderFrameImpl* CreateMainFrame( |
| 164 RenderViewImpl* render_view, | 163 RenderViewImpl* render_view, |
| 165 int32_t routing_id, | 164 int32_t routing_id, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 const blink::WebString& title) override; | 607 const blink::WebString& title) override; |
| 609 void unregisterProtocolHandler(const blink::WebString& scheme, | 608 void unregisterProtocolHandler(const blink::WebString& scheme, |
| 610 const blink::WebURL& url) override; | 609 const blink::WebURL& url) override; |
| 611 blink::WebBluetooth* bluetooth() override; | 610 blink::WebBluetooth* bluetooth() override; |
| 612 blink::WebUSBClient* usbClient() override; | 611 blink::WebUSBClient* usbClient() override; |
| 613 void checkIfAudioSinkExistsAndIsAuthorized( | 612 void checkIfAudioSinkExistsAndIsAuthorized( |
| 614 const blink::WebString& sink_id, | 613 const blink::WebString& sink_id, |
| 615 const blink::WebSecurityOrigin& security_origin, | 614 const blink::WebSecurityOrigin& security_origin, |
| 616 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 615 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
| 617 | 616 |
| 618 #if defined(ENABLE_WEBVR) | |
| 619 blink::WebVRClient* webVRClient() override; | |
| 620 #endif | |
| 621 | |
| 622 // WebFrameSerializerClient implementation: | 617 // WebFrameSerializerClient implementation: |
| 623 void didSerializeDataForFrame( | 618 void didSerializeDataForFrame( |
| 624 const blink::WebCString& data, | 619 const blink::WebCString& data, |
| 625 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 620 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
| 626 override; | 621 override; |
| 627 | 622 |
| 628 // Binds this render frame's service registry. | 623 // Binds this render frame's service registry. |
| 629 void BindServiceRegistry( | 624 void BindServiceRegistry( |
| 630 mojo::shell::mojom::InterfaceProviderRequest services, | 625 mojo::shell::mojom::InterfaceProviderRequest services, |
| 631 mojo::shell::mojom::InterfaceProviderPtr exposed_services); | 626 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1181 // Manages play, pause notifications for WebMediaPlayer implementations; its |
| 1187 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1182 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
| 1188 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1183 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
| 1189 | 1184 |
| 1190 // Whether or not this RenderFrame is using Lo-Fi mode. | 1185 // Whether or not this RenderFrame is using Lo-Fi mode. |
| 1191 bool is_using_lofi_; | 1186 bool is_using_lofi_; |
| 1192 | 1187 |
| 1193 // Whether or not this RenderFrame is currently pasting. | 1188 // Whether or not this RenderFrame is currently pasting. |
| 1194 bool is_pasting_; | 1189 bool is_pasting_; |
| 1195 | 1190 |
| 1196 #if defined(ENABLE_WEBVR) | |
| 1197 // The VR dispatcher attached to the frame, lazily initialized. | |
| 1198 scoped_ptr<VRDispatcher> vr_dispatcher_; | |
| 1199 #endif | |
| 1200 | |
| 1201 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1191 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1202 // The external popup for the currently showing select popup. | 1192 // The external popup for the currently showing select popup. |
| 1203 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1193 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
| 1204 #endif | 1194 #endif |
| 1205 | 1195 |
| 1206 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1196 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1207 | 1197 |
| 1208 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1198 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1209 }; | 1199 }; |
| 1210 | 1200 |
| 1211 } // namespace content | 1201 } // namespace content |
| 1212 | 1202 |
| 1213 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1203 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |