Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: content/renderer/media/media_stream_renderer_factory_impl.h

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philipj's comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/renderer/media_stream_renderer_factory.h" 9 #include "content/public/renderer/media_stream_renderer_factory.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory { 13 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory {
14 public: 14 public:
15 MediaStreamRendererFactoryImpl(); 15 MediaStreamRendererFactoryImpl();
16 ~MediaStreamRendererFactoryImpl() override; 16 ~MediaStreamRendererFactoryImpl() override;
17 17
18 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( 18 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
19 const GURL& url, 19 const blink::WebMediaStream& web_stream,
20 const base::Closure& error_cb, 20 const base::Closure& error_cb,
21 const VideoFrameProvider::RepaintCB& repaint_cb, 21 const VideoFrameProvider::RepaintCB& repaint_cb,
22 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 22 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
23 const scoped_refptr<base::TaskRunner>& worker_task_runner, 23 const scoped_refptr<base::TaskRunner>& worker_task_runner,
24 media::GpuVideoAcceleratorFactories* gpu_factories) override; 24 media::GpuVideoAcceleratorFactories* gpu_factories) override;
25 25
26 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 26 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
27 const GURL& url, 27 const blink::WebMediaStream& web_stream,
28 int render_frame_id, 28 int render_frame_id,
29 const std::string& device_id, 29 const std::string& device_id,
30 const url::Origin& security_origin) override; 30 const url::Origin& security_origin) override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl); 33 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 38 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698