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

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: xjz's PS4 comments addressed. Created 4 years, 3 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1011
1011 RendererMediaSessionManager* GetMediaSessionManager(); 1012 RendererMediaSessionManager* GetMediaSessionManager();
1012 #endif 1013 #endif
1013 1014
1014 bool AreSecureCodecsSupported(); 1015 bool AreSecureCodecsSupported();
1015 1016
1016 #if defined(ENABLE_MOJO_MEDIA) 1017 #if defined(ENABLE_MOJO_MEDIA)
1017 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); 1018 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider();
1018 #endif 1019 #endif
1019 1020
1021 media::mojom::RemoterFactory* GetRemoterFactory();
1020 media::CdmFactory* GetCdmFactory(); 1022 media::CdmFactory* GetCdmFactory();
1021 media::DecoderFactory* GetDecoderFactory(); 1023 media::DecoderFactory* GetDecoderFactory();
1022 1024
1023 void RegisterMojoInterfaces(); 1025 void RegisterMojoInterfaces();
1024 1026
1025 // Connect to an interface provided by the service registry. 1027 // Connect to an interface provided by the service registry.
1026 template <typename Interface> 1028 template <typename Interface>
1027 void GetInterface(mojo::InterfaceRequest<Interface> request); 1029 void GetInterface(mojo::InterfaceRequest<Interface> request);
1028 1030
1029 // Returns the media delegate for WebMediaPlayer usage. If 1031 // Returns the media delegate for WebMediaPlayer usage. If
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 // Manages all media players and sessions in this render frame for 1166 // Manages all media players and sessions in this render frame for
1165 // communicating with the real media player and sessions in the 1167 // communicating with the real media player and sessions in the
1166 // browser process. It's okay to use raw pointers since they're both 1168 // browser process. It's okay to use raw pointers since they're both
1167 // RenderFrameObservers. 1169 // RenderFrameObservers.
1168 RendererMediaPlayerManager* media_player_manager_; 1170 RendererMediaPlayerManager* media_player_manager_;
1169 RendererMediaSessionManager* media_session_manager_; 1171 RendererMediaSessionManager* media_session_manager_;
1170 #endif 1172 #endif
1171 1173
1172 media::SurfaceManager* media_surface_manager_; 1174 media::SurfaceManager* media_surface_manager_;
1173 1175
1176 // Lazy-bound pointer to the RemoterFactory service in the browser
1177 // process. Always use the GetRemoterFactory() accessor instead of this.
1178 media::mojom::RemoterFactoryPtr remoter_factory_;
1179
1174 #if defined(ENABLE_BROWSER_CDMS) 1180 #if defined(ENABLE_BROWSER_CDMS)
1175 // Manage all CDMs in this render frame for communicating with the real CDM in 1181 // Manage all CDMs in this render frame for communicating with the real CDM in
1176 // the browser process. It's okay to use a raw pointer since it's a 1182 // the browser process. It's okay to use a raw pointer since it's a
1177 // RenderFrameObserver. 1183 // RenderFrameObserver.
1178 RendererCdmManager* cdm_manager_; 1184 RendererCdmManager* cdm_manager_;
1179 #endif 1185 #endif
1180 1186
1181 // The CDM and decoder factory attached to this frame, lazily initialized. 1187 // The CDM and decoder factory attached to this frame, lazily initialized.
1182 std::unique_ptr<media::CdmFactory> cdm_factory_; 1188 std::unique_ptr<media::CdmFactory> cdm_factory_;
1183 std::unique_ptr<media::DecoderFactory> decoder_factory_; 1189 std::unique_ptr<media::DecoderFactory> decoder_factory_;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 remote_associated_interfaces_; 1294 remote_associated_interfaces_;
1289 1295
1290 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1296 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1291 1297
1292 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1298 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1293 }; 1299 };
1294 1300
1295 } // namespace content 1301 } // namespace content
1296 1302
1297 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1303 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698