Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: media/mojo/services/mojo_decoder_factory.h

Issue 1800953002: Add MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/services/mojo_audio_decoder.h ('k') | media/mojo/services/mojo_decoder_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class ServiceFactory;
15 }
16
17 class MojoDecoderFactory : public DecoderFactory { 14 class MojoDecoderFactory : public DecoderFactory {
18 public: 15 public:
19 explicit MojoDecoderFactory(interfaces::ServiceFactory* service_factory); 16 explicit MojoDecoderFactory(
17 mojo::shell::mojom::InterfaceProvider* interface_provider);
20 ~MojoDecoderFactory() final; 18 ~MojoDecoderFactory() final;
21 19
22 void CreateAudioDecoders(ScopedVector<AudioDecoder>* audio_decoders) final; 20 void CreateAudioDecoders(ScopedVector<AudioDecoder>* audio_decoders) final;
23 21
24 // TODO(xhwang): Add video decoder support if needed. 22 void CreateVideoDecoders(ScopedVector<VideoDecoder>* video_decoders) final;
25 23
26 private: 24 private:
27 interfaces::ServiceFactory* service_factory_; 25 mojo::shell::mojom::InterfaceProvider* interface_provider_;
28 26
29 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); 27 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory);
30 }; 28 };
31 29
32 } // namespace media 30 } // namespace media
33 31
34 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_ 32 #endif // MEDIA_MOJO_SERVICES_MOJO_DECODER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_audio_decoder.h ('k') | media/mojo/services/mojo_decoder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698