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"
14 class DefaultRendererFactory
;
17 namespace chromecast
{
20 class ChromecastMediaRendererFactory
: public ::media::RendererFactory
{
22 ChromecastMediaRendererFactory(
23 const scoped_refptr
<::media::MediaLog
>& media_log
,
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
;
34 scoped_refptr
<::media::MediaLog
> media_log_
;
35 scoped_ptr
<::media::DefaultRendererFactory
> default_render_factory_
;
37 DISALLOW_COPY_AND_ASSIGN(ChromecastMediaRendererFactory
);
41 } // namespace chromecast
43 #endif // CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_