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

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

Issue 1697233002: Reland of land "media: Refactor MojoMediaClient" with fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_MOJO_SERVICES_DEFAULT_MOJO_MEDIA_CLIENT_H_
6 #define MEDIA_MOJO_SERVICES_DEFAULT_MOJO_MEDIA_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "media/audio/fake_audio_log_factory.h"
12 #include "media/mojo/services/mojo_media_client.h"
13
14 namespace media {
15
16 class AudioHardwareConfig;
17 class AudioRendererSink;
18 class VideoRendererSink;
19
20 // Default MojoMediaClient for MojoMediaApplication.
21 class DefaultMojoMediaClient : public MojoMediaClient {
22 public:
23 DefaultMojoMediaClient();
24 ~DefaultMojoMediaClient() final;
25
26 // MojoMediaClient implementation.
27 void Initialize() final;
28 scoped_ptr<RendererFactory> CreateRendererFactory(
29 const scoped_refptr<MediaLog>& media_log) final;
30 AudioRendererSink* CreateAudioRendererSink() final;
31 VideoRendererSink* CreateVideoRendererSink(
32 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) final;
33 scoped_ptr<CdmFactory> CreateCdmFactory(
34 mojo::shell::mojom::InterfaceProvider* /* service_provider */) final;
35
36 private:
37 FakeAudioLogFactory fake_audio_log_factory_;
38 scoped_ptr<AudioHardwareConfig> audio_hardware_config_;
39 scoped_refptr<AudioRendererSink> audio_renderer_sink_;
40 scoped_ptr<VideoRendererSink> video_renderer_sink_;
41
42 DISALLOW_COPY_AND_ASSIGN(DefaultMojoMediaClient);
43 };
44
45 } // namespace media
46
47 #endif // MEDIA_MOJO_SERVICES_DEFAULT_MOJO_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « media/mojo/services/android_mojo_media_client.cc ('k') | media/mojo/services/default_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698