Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: Just a REBASE on ToT before commit. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 #include "content/public/common/referrer.h" 31 #include "content/public/common/referrer.h"
32 #include "content/public/common/stop_find_action.h" 32 #include "content/public/common/stop_find_action.h"
33 #include "content/public/renderer/render_frame.h" 33 #include "content/public/renderer/render_frame.h"
34 #include "content/renderer/frame_blame_context.h" 34 #include "content/renderer/frame_blame_context.h"
35 #include "content/renderer/mojo/blink_interface_provider_impl.h" 35 #include "content/renderer/mojo/blink_interface_provider_impl.h"
36 #include "content/renderer/renderer_webcookiejar_impl.h" 36 #include "content/renderer/renderer_webcookiejar_impl.h"
37 #include "ipc/ipc_message.h" 37 #include "ipc/ipc_message.h"
38 #include "ipc/ipc_platform_file.h" 38 #include "ipc/ipc_platform_file.h"
39 #include "media/blink/webmediaplayer_delegate.h" 39 #include "media/blink/webmediaplayer_delegate.h"
40 #include "media/blink/webmediaplayer_params.h" 40 #include "media/blink/webmediaplayer_params.h"
41 #include "media/mojo/interfaces/remoting.mojom.h"
41 #include "mojo/public/cpp/bindings/binding.h" 42 #include "mojo/public/cpp/bindings/binding.h"
42 #include "services/shell/public/interfaces/connector.mojom.h" 43 #include "services/shell/public/interfaces/connector.mojom.h"
43 #include "services/shell/public/interfaces/interface_provider.mojom.h" 44 #include "services/shell/public/interfaces/interface_provider.mojom.h"
44 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" 45 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h"
45 #include "third_party/WebKit/public/platform/WebFocusType.h" 46 #include "third_party/WebKit/public/platform/WebFocusType.h"
46 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" 47 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
47 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 48 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
48 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 49 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
49 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 50 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
50 #include "third_party/WebKit/public/web/WebAXObject.h" 51 #include "third_party/WebKit/public/web/WebAXObject.h"
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 1013
1013 RendererMediaSessionManager* GetMediaSessionManager(); 1014 RendererMediaSessionManager* GetMediaSessionManager();
1014 #endif 1015 #endif
1015 1016
1016 bool AreSecureCodecsSupported(); 1017 bool AreSecureCodecsSupported();
1017 1018
1018 #if defined(ENABLE_MOJO_MEDIA) 1019 #if defined(ENABLE_MOJO_MEDIA)
1019 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); 1020 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider();
1020 #endif 1021 #endif
1021 1022
1023 media::mojom::RemoterFactory* GetRemoterFactory();
1022 media::CdmFactory* GetCdmFactory(); 1024 media::CdmFactory* GetCdmFactory();
1023 media::DecoderFactory* GetDecoderFactory(); 1025 media::DecoderFactory* GetDecoderFactory();
1024 1026
1025 void RegisterMojoInterfaces(); 1027 void RegisterMojoInterfaces();
1026 1028
1027 // Connect to an interface provided by the service registry. 1029 // Connect to an interface provided by the service registry.
1028 template <typename Interface> 1030 template <typename Interface>
1029 void GetInterface(mojo::InterfaceRequest<Interface> request); 1031 void GetInterface(mojo::InterfaceRequest<Interface> request);
1030 1032
1031 // Returns the media delegate for WebMediaPlayer usage. If 1033 // Returns the media delegate for WebMediaPlayer usage. If
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 // Manages all media players and sessions in this render frame for 1179 // Manages all media players and sessions in this render frame for
1178 // communicating with the real media player and sessions in the 1180 // communicating with the real media player and sessions in the
1179 // browser process. It's okay to use raw pointers since they're both 1181 // browser process. It's okay to use raw pointers since they're both
1180 // RenderFrameObservers. 1182 // RenderFrameObservers.
1181 RendererMediaPlayerManager* media_player_manager_; 1183 RendererMediaPlayerManager* media_player_manager_;
1182 RendererMediaSessionManager* media_session_manager_; 1184 RendererMediaSessionManager* media_session_manager_;
1183 #endif 1185 #endif
1184 1186
1185 media::SurfaceManager* media_surface_manager_; 1187 media::SurfaceManager* media_surface_manager_;
1186 1188
1189 // Lazy-bound pointer to the RemoterFactory service in the browser
1190 // process. Always use the GetRemoterFactory() accessor instead of this.
1191 media::mojom::RemoterFactoryPtr remoter_factory_;
1192
1187 #if defined(ENABLE_BROWSER_CDMS) 1193 #if defined(ENABLE_BROWSER_CDMS)
1188 // Manage all CDMs in this render frame for communicating with the real CDM in 1194 // Manage all CDMs in this render frame for communicating with the real CDM in
1189 // the browser process. It's okay to use a raw pointer since it's a 1195 // the browser process. It's okay to use a raw pointer since it's a
1190 // RenderFrameObserver. 1196 // RenderFrameObserver.
1191 RendererCdmManager* cdm_manager_; 1197 RendererCdmManager* cdm_manager_;
1192 #endif 1198 #endif
1193 1199
1194 // The CDM and decoder factory attached to this frame, lazily initialized. 1200 // The CDM and decoder factory attached to this frame, lazily initialized.
1195 std::unique_ptr<media::CdmFactory> cdm_factory_; 1201 std::unique_ptr<media::CdmFactory> cdm_factory_;
1196 std::unique_ptr<media::DecoderFactory> decoder_factory_; 1202 std::unique_ptr<media::DecoderFactory> decoder_factory_;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 remote_associated_interfaces_; 1301 remote_associated_interfaces_;
1296 1302
1297 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1303 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1298 1304
1299 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1305 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1300 }; 1306 };
1301 1307
1302 } // namespace content 1308 } // namespace content
1303 1309
1304 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1310 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698