OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 module media.interfaces; | 5 module media.interfaces; |
6 | 6 |
7 import "media/mojo/interfaces/content_decryption_module.mojom"; | 7 import "media/mojo/interfaces/content_decryption_module.mojom"; |
8 import "media/mojo/interfaces/media_renderer.mojom"; | 8 import "media/mojo/interfaces/renderer.mojom"; |
9 | 9 |
10 // A factory interface to create media services. MediaRenderers can only access | 10 // A factory interface to create media services. Renderers can only access |
11 // ContentDecryptionModules created in the same factory. | 11 // ContentDecryptionModules created in the same factory. |
12 interface ServiceFactory { | 12 interface ServiceFactory { |
13 // Creates a ContentDecryptionModule service. | 13 // Creates a ContentDecryptionModule service. |
14 CreateCdm(ContentDecryptionModule& cdm); | 14 CreateCdm(ContentDecryptionModule& cdm); |
15 | 15 |
16 // Creates a MediaRenderer service. | 16 // Creates a Renderer service. |
17 CreateRenderer(MediaRenderer& renderer); | 17 CreateRenderer(Renderer& renderer); |
18 }; | 18 }; |
OLD | NEW |