| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_MOJO_MEDIA_CLIENT_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_TEST_MOJO_MEDIA_CLIENT_H_ |
| 6 #define MEDIA_MOJO_SERVICES_TEST_MOJO_MEDIA_CLIENT_H_ | 6 #define MEDIA_MOJO_SERVICES_TEST_MOJO_MEDIA_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Default MojoMediaClient for MojoMediaApplication. | 26 // Default MojoMediaClient for MojoMediaApplication. |
| 27 class TestMojoMediaClient : public MojoMediaClient { | 27 class TestMojoMediaClient : public MojoMediaClient { |
| 28 public: | 28 public: |
| 29 TestMojoMediaClient(); | 29 TestMojoMediaClient(); |
| 30 ~TestMojoMediaClient() final; | 30 ~TestMojoMediaClient() final; |
| 31 | 31 |
| 32 // MojoMediaClient implementation. | 32 // MojoMediaClient implementation. |
| 33 void Initialize() final; | 33 void Initialize() final; |
| 34 void WillQuit() final; | 34 void WillQuit() final; |
| 35 std::unique_ptr<Renderer> CreateRenderer( | 35 scoped_refptr<AudioRendererSink> CreateAudioRendererSink( |
| 36 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner, | |
| 37 scoped_refptr<MediaLog> media_log, | |
| 38 const std::string& audio_device_id) final; | 36 const std::string& audio_device_id) final; |
| 37 std::unique_ptr<VideoRendererSink> CreateVideoRendererSink( |
| 38 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) final; |
| 39 std::unique_ptr<RendererFactory> CreateRendererFactory( |
| 40 const scoped_refptr<MediaLog>& media_log) final; |
| 39 std::unique_ptr<CdmFactory> CreateCdmFactory( | 41 std::unique_ptr<CdmFactory> CreateCdmFactory( |
| 40 shell::mojom::InterfaceProvider* /* interface_provider */) final; | 42 shell::mojom::InterfaceProvider* /* interface_provider */) final; |
| 41 | 43 |
| 42 private: | 44 private: |
| 43 RendererFactory* GetRendererFactory(scoped_refptr<MediaLog> media_log); | |
| 44 AudioRendererSink* GetAudioRendererSink(); | |
| 45 VideoRendererSink* GetVideoRendererSink( | |
| 46 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); | |
| 47 | |
| 48 ScopedAudioManagerPtr audio_manager_; | 45 ScopedAudioManagerPtr audio_manager_; |
| 49 std::unique_ptr<RendererFactory> renderer_factory_; | |
| 50 scoped_refptr<AudioRendererSink> audio_renderer_sink_; | |
| 51 std::unique_ptr<VideoRendererSink> video_renderer_sink_; | |
| 52 | 46 |
| 53 DISALLOW_COPY_AND_ASSIGN(TestMojoMediaClient); | 47 DISALLOW_COPY_AND_ASSIGN(TestMojoMediaClient); |
| 54 }; | 48 }; |
| 55 | 49 |
| 56 } // namespace media | 50 } // namespace media |
| 57 | 51 |
| 58 #endif // MEDIA_MOJO_SERVICES_TEST_MOJO_MEDIA_CLIENT_H_ | 52 #endif // MEDIA_MOJO_SERVICES_TEST_MOJO_MEDIA_CLIENT_H_ |
| OLD | NEW |