Roll src/third_party/skia 2469c99:48c3534
[chromium-blink-merge.git] / chromecast / renderer / media / chromecast_media_renderer_factory.h
blobf880ff6c746ca2d6cc6324c1afef5faf8f9be0a2
1 // Copyright 2015 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.
5 #ifndef CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_
6 #define CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "media/base/renderer_factory.h"
12 namespace media {
13 class MediaLog;
14 class DefaultRendererFactory;
17 namespace chromecast {
18 namespace media {
20 class ChromecastMediaRendererFactory : public ::media::RendererFactory {
21 public:
22 ChromecastMediaRendererFactory(
23 const scoped_refptr<::media::MediaLog>& media_log,
24 int render_frame_id);
25 ~ChromecastMediaRendererFactory() final;
27 // ::media::RendererFactory implementation.
28 scoped_ptr<::media::Renderer> CreateRenderer(
29 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
30 ::media::AudioRendererSink* audio_renderer_sink) final;
32 private:
33 int render_frame_id_;
34 scoped_refptr<::media::MediaLog> media_log_;
35 scoped_ptr<::media::DefaultRendererFactory> default_render_factory_;
37 DISALLOW_COPY_AND_ASSIGN(ChromecastMediaRendererFactory);
40 } // namespace media
41 } // namespace chromecast
43 #endif // CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_