1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 module media.interfaces;
7 import "media/mojo/interfaces/content_decryption_module.mojom";
8 import "media/mojo/interfaces/renderer.mojom";
10 // A factory interface to create media services. Renderers can only access
11 // ContentDecryptionModules created in the same factory.
12 interface ServiceFactory {
13 // Creates a ContentDecryptionModule service.
14 CreateCdm(ContentDecryptionModule& cdm);
16 // Creates a Renderer service.
17 CreateRenderer(Renderer& renderer);