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.mojom; | 5 module media.mojom; |
6 | 6 |
7 import "media/mojo/interfaces/audio_decoder.mojom"; | 7 import "media/mojo/interfaces/audio_decoder.mojom"; |
8 import "media/mojo/interfaces/content_decryption_module.mojom"; | 8 import "media/mojo/interfaces/content_decryption_module.mojom"; |
9 import "media/mojo/interfaces/renderer.mojom"; | 9 import "media/mojo/interfaces/renderer.mojom"; |
| 10 import "media/mojo/interfaces/video_decoder.mojom"; |
10 | 11 |
11 // A factory interface to create media services. Renderers can only access | 12 // A factory interface to create media services. Renderers can only access |
12 // ContentDecryptionModules created in the same factory. | 13 // ContentDecryptionModules created in the same factory. |
13 interface ServiceFactory { | 14 interface ServiceFactory { |
14 // Creates an AudioDecoder service. | 15 // Creates an AudioDecoder service. |
15 CreateAudioDecoder(AudioDecoder& audio_decoder); | 16 CreateAudioDecoder(AudioDecoder& audio_decoder); |
16 | 17 |
| 18 // Creates a VideoDecoder service. |
| 19 CreateVideoDecoder(VideoDecoder& video_decoder); |
| 20 |
17 // Creates a Renderer service. | 21 // Creates a Renderer service. |
18 CreateRenderer(Renderer& renderer); | 22 CreateRenderer(Renderer& renderer); |
19 | 23 |
20 // Creates a ContentDecryptionModule service. | 24 // Creates a ContentDecryptionModule service. |
21 CreateCdm(ContentDecryptionModule& cdm); | 25 CreateCdm(ContentDecryptionModule& cdm); |
22 }; | 26 }; |
OLD | NEW |