Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / renderer / media / media_stream_renderer_factory_impl.h
blob3bfad6349c0c06bc09e12080eb3c1b6cbab3f65c
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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
8 #include "content/public/renderer/media_stream_renderer_factory.h"
10 namespace content {
12 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory {
13 public:
14 MediaStreamRendererFactoryImpl();
15 ~MediaStreamRendererFactoryImpl() override;
17 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
18 const GURL& url,
19 const base::Closure& error_cb,
20 const VideoFrameProvider::RepaintCB& repaint_cb) override;
22 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
23 const GURL& url,
24 int render_frame_id) override;
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl);
30 } // namespace content
32 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_