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 | 11 |
11 namespace media { | 12 namespace media { |
12 | 13 |
13 namespace interfaces { | 14 namespace interfaces { |
14 class ServiceFactory; | 15 class ServiceFactory; |
xhwang
2016/03/15 05:13:18
remove please
| |
15 } | 16 } |
16 | 17 |
17 class MojoDecoderFactory : public DecoderFactory { | 18 class MojoDecoderFactory : public DecoderFactory { |
18 public: | 19 public: |
19 explicit MojoDecoderFactory(interfaces::ServiceFactory* service_factory); | 20 explicit MojoDecoderFactory( |
21 mojo::shell::mojom::InterfaceProvider* interface_provider); | |
20 ~MojoDecoderFactory() final; | 22 ~MojoDecoderFactory() final; |
21 | 23 |
22 void CreateAudioDecoders(ScopedVector<AudioDecoder>* audio_decoders) final; | 24 void CreateAudioDecoders(ScopedVector<AudioDecoder>* audio_decoders) final; |
23 | 25 |
24 // TODO(xhwang): Add video decoder support if needed. | 26 void CreateVideoDecoders(ScopedVector<VideoDecoder>* video_decoders) final; |
25 | 27 |
26 private: | 28 private: |
27 interfaces::ServiceFactory* service_factory_; | 29 mojo::shell::mojom::InterfaceProvider* interface_provider_; |
28 | 30 |
29 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); | 31 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); |
30 }; | 32 }; |
31 | 33 |
32 } // namespace media | 34 } // namespace media |
33 | 35 |
34 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ | 36 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ |
OLD | NEW |