Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / media / renderers / default_renderer_factory.h
blob2ec8aa8bab53d7d3755af675e8ff7da161e3f7ee
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_RENDERERS_DEFAULT_RENDERER_FACTORY_H_
6 #define MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_
8 #include "base/callback.h"
9 #include "media/base/media_export.h"
10 #include "media/base/renderer_factory.h"
12 namespace media {
14 class AudioHardwareConfig;
15 class AudioRendererSink;
16 class GpuVideoAcceleratorFactories;
17 class MediaLog;
18 class VideoRendererSink;
20 // The default factory class for creating RendererImpl.
21 class MEDIA_EXPORT DefaultRendererFactory : public RendererFactory {
22 public:
23 DefaultRendererFactory(
24 const scoped_refptr<MediaLog>& media_log,
25 const scoped_refptr<GpuVideoAcceleratorFactories>& gpu_factories,
26 const AudioHardwareConfig& audio_hardware_config);
27 ~DefaultRendererFactory() final;
29 scoped_ptr<Renderer> CreateRenderer(
30 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
31 const scoped_refptr<base::TaskRunner>& worker_task_runner,
32 AudioRendererSink* audio_renderer_sink,
33 VideoRendererSink* video_renderer_sink) final;
35 private:
36 scoped_refptr<MediaLog> media_log_;
38 // Factories for supporting video accelerators. May be null.
39 scoped_refptr<GpuVideoAcceleratorFactories> gpu_factories_;
41 const AudioHardwareConfig& audio_hardware_config_;
43 DISALLOW_COPY_AND_ASSIGN(DefaultRendererFactory);
46 } // namespace media
48 #endif // MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_