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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 | 1003 |
1003 RendererMediaSessionManager* GetMediaSessionManager(); | 1004 RendererMediaSessionManager* GetMediaSessionManager(); |
1004 #endif | 1005 #endif |
1005 | 1006 |
1006 bool AreSecureCodecsSupported(); | 1007 bool AreSecureCodecsSupported(); |
1007 | 1008 |
1008 #if defined(ENABLE_MOJO_MEDIA) | 1009 #if defined(ENABLE_MOJO_MEDIA) |
1009 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); | 1010 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); |
1010 #endif | 1011 #endif |
1011 | 1012 |
| 1013 media::mojom::RemoterFactory* GetRemoterFactory(); |
1012 media::CdmFactory* GetCdmFactory(); | 1014 media::CdmFactory* GetCdmFactory(); |
1013 media::DecoderFactory* GetDecoderFactory(); | 1015 media::DecoderFactory* GetDecoderFactory(); |
1014 | 1016 |
1015 void RegisterMojoInterfaces(); | 1017 void RegisterMojoInterfaces(); |
1016 | 1018 |
1017 // Connect to an interface provided by the service registry. | 1019 // Connect to an interface provided by the service registry. |
1018 template <typename Interface> | 1020 template <typename Interface> |
1019 void GetInterface(mojo::InterfaceRequest<Interface> request); | 1021 void GetInterface(mojo::InterfaceRequest<Interface> request); |
1020 | 1022 |
1021 // Returns the media delegate for WebMediaPlayer usage. If | 1023 // Returns the media delegate for WebMediaPlayer usage. If |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 // Manages all media players and sessions in this render frame for | 1158 // Manages all media players and sessions in this render frame for |
1157 // communicating with the real media player and sessions in the | 1159 // communicating with the real media player and sessions in the |
1158 // browser process. It's okay to use raw pointers since they're both | 1160 // browser process. It's okay to use raw pointers since they're both |
1159 // RenderFrameObservers. | 1161 // RenderFrameObservers. |
1160 RendererMediaPlayerManager* media_player_manager_; | 1162 RendererMediaPlayerManager* media_player_manager_; |
1161 RendererMediaSessionManager* media_session_manager_; | 1163 RendererMediaSessionManager* media_session_manager_; |
1162 #endif | 1164 #endif |
1163 | 1165 |
1164 media::SurfaceManager* media_surface_manager_; | 1166 media::SurfaceManager* media_surface_manager_; |
1165 | 1167 |
| 1168 // Lazy-bound pointer to the RemoterFactory service in the browser |
| 1169 // process. Always use the GetRemoterFactory() accessor instead of this. |
| 1170 media::mojom::RemoterFactoryPtr remoter_factory_; |
| 1171 |
1166 #if defined(ENABLE_BROWSER_CDMS) | 1172 #if defined(ENABLE_BROWSER_CDMS) |
1167 // Manage all CDMs in this render frame for communicating with the real CDM in | 1173 // Manage all CDMs in this render frame for communicating with the real CDM in |
1168 // the browser process. It's okay to use a raw pointer since it's a | 1174 // the browser process. It's okay to use a raw pointer since it's a |
1169 // RenderFrameObserver. | 1175 // RenderFrameObserver. |
1170 RendererCdmManager* cdm_manager_; | 1176 RendererCdmManager* cdm_manager_; |
1171 #endif | 1177 #endif |
1172 | 1178 |
1173 // The CDM and decoder factory attached to this frame, lazily initialized. | 1179 // The CDM and decoder factory attached to this frame, lazily initialized. |
1174 std::unique_ptr<media::CdmFactory> cdm_factory_; | 1180 std::unique_ptr<media::CdmFactory> cdm_factory_; |
1175 std::unique_ptr<media::DecoderFactory> decoder_factory_; | 1181 std::unique_ptr<media::DecoderFactory> decoder_factory_; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 bool has_accessed_initial_document_; | 1282 bool has_accessed_initial_document_; |
1277 | 1283 |
1278 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1284 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1279 | 1285 |
1280 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1286 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1281 }; | 1287 }; |
1282 | 1288 |
1283 } // namespace content | 1289 } // namespace content |
1284 | 1290 |
1285 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1291 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |