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

Unified Diff: media/mojo/interfaces/service_factory.mojom

Issue 1230313010: media: Add ServiceFactory mojo interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 5 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/interfaces/BUILD.gn ('k') | media/mojo/services/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/service_factory.mojom
diff --git a/media/mojo/interfaces/service_factory.mojom b/media/mojo/interfaces/service_factory.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a74faa2e233e4beda96a698da3ec49458439d256
--- /dev/null
+++ b/media/mojo/interfaces/service_factory.mojom
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module media.interfaces;
+
+import "media/mojo/interfaces/content_decryption_module.mojom";
+import "media/mojo/interfaces/media_renderer.mojom";
+
+// A factory interface to create media services. MediaRenderers can only access
+// ContentDecryptionModules created in the same factory.
+interface ServiceFactory {
+ // Creates a ContentDecryptionModule service.
+ CreateCdm(ContentDecryptionModule& cdm);
+
+ // Creates a MediaRenderer service.
+ CreateRenderer(MediaRenderer& renderer);
+};
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698