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.
5 #ifndef CHROMECAST_RENDERER_MEDIA_CMA_MEDIA_RENDERER_FACTORY_H_
6 #define CHROMECAST_RENDERER_MEDIA_CMA_MEDIA_RENDERER_FACTORY_H_
8 #include "base/macros.h"
9 #include "media/base/renderer_factory.h"
11 namespace chromecast
{
14 class CmaMediaRendererFactory
: public ::media::RendererFactory
{
16 explicit CmaMediaRendererFactory(int render_frame_id
);
17 ~CmaMediaRendererFactory() final
;
19 // ::media::RendererFactory implementation.
20 scoped_ptr
< ::media::Renderer
> CreateRenderer(
21 const scoped_refptr
<base::SingleThreadTaskRunner
>& media_task_runner
,
22 ::media::AudioRendererSink
* audio_renderer_sink
) final
;
26 DISALLOW_COPY_AND_ASSIGN(CmaMediaRendererFactory
);
30 } // namespace chromecast
32 #endif // CHROMECAST_RENDERER_MEDIA_CMA_MEDIA_RENDERER_FACTORY_H_