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 19 matching lines...) Expand all Loading... |
30 #include "content/public/common/referrer.h" | 30 #include "content/public/common/referrer.h" |
31 #include "content/public/common/stop_find_action.h" | 31 #include "content/public/common/stop_find_action.h" |
32 #include "content/public/renderer/render_frame.h" | 32 #include "content/public/renderer/render_frame.h" |
33 #include "content/renderer/frame_blame_context.h" | 33 #include "content/renderer/frame_blame_context.h" |
34 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 34 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
35 #include "content/renderer/renderer_webcookiejar_impl.h" | 35 #include "content/renderer/renderer_webcookiejar_impl.h" |
36 #include "ipc/ipc_message.h" | 36 #include "ipc/ipc_message.h" |
37 #include "ipc/ipc_platform_file.h" | 37 #include "ipc/ipc_platform_file.h" |
38 #include "media/blink/webmediaplayer_delegate.h" | 38 #include "media/blink/webmediaplayer_delegate.h" |
39 #include "media/blink/webmediaplayer_params.h" | 39 #include "media/blink/webmediaplayer_params.h" |
| 40 #include "media/mojo/interfaces/remoting.mojom.h" |
40 #include "mojo/public/cpp/bindings/binding.h" | 41 #include "mojo/public/cpp/bindings/binding.h" |
41 #include "services/shell/public/interfaces/connector.mojom.h" | 42 #include "services/shell/public/interfaces/connector.mojom.h" |
42 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 43 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
43 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 44 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
44 #include "third_party/WebKit/public/platform/WebFocusType.h" | 45 #include "third_party/WebKit/public/platform/WebFocusType.h" |
45 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 46 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
46 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 47 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
47 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 48 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
48 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 49 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
49 #include "third_party/WebKit/public/web/WebAXObject.h" | 50 #include "third_party/WebKit/public/web/WebAXObject.h" |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 | 1004 |
1004 RendererMediaSessionManager* GetMediaSessionManager(); | 1005 RendererMediaSessionManager* GetMediaSessionManager(); |
1005 #endif | 1006 #endif |
1006 | 1007 |
1007 bool AreSecureCodecsSupported(); | 1008 bool AreSecureCodecsSupported(); |
1008 | 1009 |
1009 #if defined(ENABLE_MOJO_MEDIA) | 1010 #if defined(ENABLE_MOJO_MEDIA) |
1010 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); | 1011 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); |
1011 #endif | 1012 #endif |
1012 | 1013 |
| 1014 media::mojom::RemoterFactory* GetRemoterFactory(); |
1013 media::CdmFactory* GetCdmFactory(); | 1015 media::CdmFactory* GetCdmFactory(); |
1014 media::DecoderFactory* GetDecoderFactory(); | 1016 media::DecoderFactory* GetDecoderFactory(); |
1015 | 1017 |
1016 void RegisterMojoInterfaces(); | 1018 void RegisterMojoInterfaces(); |
1017 | 1019 |
1018 // Connect to an interface provided by the service registry. | 1020 // Connect to an interface provided by the service registry. |
1019 template <typename Interface> | 1021 template <typename Interface> |
1020 void GetInterface(mojo::InterfaceRequest<Interface> request); | 1022 void GetInterface(mojo::InterfaceRequest<Interface> request); |
1021 | 1023 |
1022 // Returns the media delegate for WebMediaPlayer usage. If | 1024 // Returns the media delegate for WebMediaPlayer usage. If |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 // Manages all media players and sessions in this render frame for | 1159 // Manages all media players and sessions in this render frame for |
1158 // communicating with the real media player and sessions in the | 1160 // communicating with the real media player and sessions in the |
1159 // browser process. It's okay to use raw pointers since they're both | 1161 // browser process. It's okay to use raw pointers since they're both |
1160 // RenderFrameObservers. | 1162 // RenderFrameObservers. |
1161 RendererMediaPlayerManager* media_player_manager_; | 1163 RendererMediaPlayerManager* media_player_manager_; |
1162 RendererMediaSessionManager* media_session_manager_; | 1164 RendererMediaSessionManager* media_session_manager_; |
1163 #endif | 1165 #endif |
1164 | 1166 |
1165 media::SurfaceManager* media_surface_manager_; | 1167 media::SurfaceManager* media_surface_manager_; |
1166 | 1168 |
| 1169 // Lazy-bound pointer to the RemoterFactory service in the browser |
| 1170 // process. Always use the GetRemoterFactory() accessor instead of this. |
| 1171 media::mojom::RemoterFactoryPtr remoter_factory_; |
| 1172 |
1167 #if defined(ENABLE_BROWSER_CDMS) | 1173 #if defined(ENABLE_BROWSER_CDMS) |
1168 // Manage all CDMs in this render frame for communicating with the real CDM in | 1174 // Manage all CDMs in this render frame for communicating with the real CDM in |
1169 // the browser process. It's okay to use a raw pointer since it's a | 1175 // the browser process. It's okay to use a raw pointer since it's a |
1170 // RenderFrameObserver. | 1176 // RenderFrameObserver. |
1171 RendererCdmManager* cdm_manager_; | 1177 RendererCdmManager* cdm_manager_; |
1172 #endif | 1178 #endif |
1173 | 1179 |
1174 // The CDM and decoder factory attached to this frame, lazily initialized. | 1180 // The CDM and decoder factory attached to this frame, lazily initialized. |
1175 std::unique_ptr<media::CdmFactory> cdm_factory_; | 1181 std::unique_ptr<media::CdmFactory> cdm_factory_; |
1176 std::unique_ptr<media::DecoderFactory> decoder_factory_; | 1182 std::unique_ptr<media::DecoderFactory> decoder_factory_; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 bool has_accessed_initial_document_; | 1283 bool has_accessed_initial_document_; |
1278 | 1284 |
1279 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1285 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1280 | 1286 |
1281 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1287 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1282 }; | 1288 }; |
1283 | 1289 |
1284 } // namespace content | 1290 } // namespace content |
1285 | 1291 |
1286 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1292 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |