OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_ |
| 6 #define MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "media/mojo/services/mojo_media_client.h" |
| 11 |
| 12 namespace base { |
| 13 class SingleThreadTaskRunner; |
| 14 } |
| 15 |
| 16 namespace media { |
| 17 |
| 18 class VideoDecoder; |
| 19 |
| 20 // Default MojoMediaClient for MediaService. |
| 21 class UtilityMojoMediaClient : public MojoMediaClient { |
| 22 public: |
| 23 UtilityMojoMediaClient(); |
| 24 ~UtilityMojoMediaClient() final; |
| 25 |
| 26 // MojoMediaClient implementation. |
| 27 void Initialize() final; |
| 28 std::unique_ptr<VideoDecoder> CreateVideoDecoder( |
| 29 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(UtilityMojoMediaClient); |
| 32 }; |
| 33 |
| 34 } // namespace media |
| 35 |
| 36 #endif // MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_ |
OLD | NEW |