Split uri_beacons target from bluetooth target.
[chromium-blink-merge.git] / media / base / renderer_factory.h
blob211447e6708f21d97178b081dfffe30a8c324752
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 MEDIA_BASE_RENDERER_FACTORY_H_
6 #define MEDIA_BASE_RENDERER_FACTORY_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/media_export.h"
12 #include "media/base/renderer.h"
14 namespace base {
15 class SingleThreadTaskRunner;
18 namespace media {
20 class AudioRendererSink;
22 // A factory class for creating media::Renderer to be used by media pipeline.
23 class MEDIA_EXPORT RendererFactory {
24 public:
25 RendererFactory();
26 virtual ~RendererFactory();
28 // Creates and returns a Renderer. All methods of the created Renderer except
29 // for GetMediaTime() will be called on the |media_task_runner|.
30 // GetMediaTime() could be called on any thread.
31 // The created Renderer can use the |audio_renderer_sink| to render audio.
32 virtual scoped_ptr<Renderer> CreateRenderer(
33 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
34 AudioRendererSink* audio_renderer_sink) = 0;
36 private:
37 DISALLOW_COPY_AND_ASSIGN(RendererFactory);
40 } // namespace media
42 #endif // MEDIA_BASE_RENDERER_FACTORY_H_