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

Unified Diff: media/mojo/services/service_factory_impl.h

Issue 2281843003: Move ownership of audio/video sinks to MojoRendererService. (Closed)
Patch Set: rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/service_factory_impl.h
diff --git a/media/mojo/services/service_factory_impl.h b/media/mojo/services/service_factory_impl.h
index db56afb303ff7d529d5caf2041ff051a69fdf14d..5407b910eaa30c4291991d2ec9a3a8e72202ab6b 100644
--- a/media/mojo/services/service_factory_impl.h
+++ b/media/mojo/services/service_factory_impl.h
@@ -44,17 +44,25 @@ class ServiceFactoryImpl : public mojom::ServiceFactory {
void CreateCdm(mojom::ContentDecryptionModuleRequest request) final;
private:
+#if defined(ENABLE_MOJO_RENDERER)
+ RendererFactory* GetRendererFactory();
+#endif // defined(ENABLE_MOJO_RENDERER)
+
#if defined(ENABLE_MOJO_CDM)
CdmFactory* GetCdmFactory();
-
- std::unique_ptr<CdmFactory> cdm_factory_;
#endif // defined(ENABLE_MOJO_CDM)
MojoCdmServiceContext cdm_service_context_;
mojo::StrongBinding<mojom::ServiceFactory> binding_;
+
+#if defined(ENABLE_MOJO_RENDERER)
+ std::unique_ptr<RendererFactory> renderer_factory_;
+#endif // defined(ENABLE_MOJO_RENDERER)
+
#if defined(ENABLE_MOJO_CDM)
+ std::unique_ptr<CdmFactory> cdm_factory_;
shell::mojom::InterfaceProviderPtr interfaces_;
-#endif
+#endif // defined(ENABLE_MOJO_CDM)
scoped_refptr<MediaLog> media_log_;
std::unique_ptr<shell::ServiceContextRef> connection_ref_;
« no previous file with comments | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698