OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ |
6 #define MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "media/base/decoder_factory.h" | 9 #include "media/base/decoder_factory.h" |
10 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" | 10 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 class MojoDecoderFactory : public DecoderFactory { | 14 class MojoDecoderFactory : public DecoderFactory { |
15 public: | 15 public: |
16 explicit MojoDecoderFactory( | 16 explicit MojoDecoderFactory( |
17 mojo::shell::mojom::InterfaceProvider* interface_provider); | 17 mojo::shell::mojom::InterfaceProvider* interface_provider); |
18 ~MojoDecoderFactory() final; | 18 ~MojoDecoderFactory() final; |
19 | 19 |
20 void CreateAudioDecoders( | 20 void CreateAudioDecoders( |
21 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 21 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
22 ScopedVector<AudioDecoder>* audio_decoders) final; | 22 ScopedVector<AudioDecoder>* audio_decoders) final; |
23 | 23 |
24 void CreateVideoDecoders( | 24 void CreateVideoDecoders( |
25 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 25 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
26 ScopedVector<VideoDecoder>* video_decoders) final; | 26 ScopedVector<VideoDecoder>* video_decoders) final; |
27 | 27 |
28 private: | 28 private: |
29 mojo::shell::mojom::InterfaceProvider* interface_provider_; | 29 mojo::shell::mojom::InterfaceProvider* interface_provider_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); | 31 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace media | 34 } // namespace media |
35 | 35 |
36 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ | 36 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ |
OLD | NEW |