OLD | NEW |
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_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_ |
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "content/public/renderer/media_stream_renderer_factory.h" | 9 #include "content/public/renderer/media_stream_renderer_factory.h" |
10 #include "third_party/WebKit/public/platform/WebURL.h" | 10 #include "third_party/WebKit/public/platform/WebURL.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when | 14 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when |
15 // running layout tests. | 15 // running layout tests. |
16 class TestMediaStreamRendererFactory : public MediaStreamRendererFactory { | 16 class TestMediaStreamRendererFactory : public MediaStreamRendererFactory { |
17 public: | 17 public: |
18 TestMediaStreamRendererFactory(); | 18 TestMediaStreamRendererFactory(); |
19 ~TestMediaStreamRendererFactory() override; | 19 ~TestMediaStreamRendererFactory() override; |
20 | 20 |
21 // MediaStreamRendererFactory implementation. | 21 // MediaStreamRendererFactory implementation. |
22 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( | 22 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( |
23 const GURL& url, | 23 const GURL& url, |
24 const base::Closure& error_cb, | 24 const base::Closure& error_cb, |
25 const VideoFrameProvider::RepaintCB& repaint_cb) override; | 25 const VideoFrameProvider::RepaintCB& repaint_cb, |
| 26 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
| 27 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
| 28 const scoped_refptr<media::GpuVideoAcceleratorFactories>& |
| 29 gpu_factories) override; |
26 | 30 |
27 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( | 31 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( |
28 const GURL& url, | 32 const GURL& url, |
29 int render_frame_id, | 33 int render_frame_id, |
30 const std::string& device_id, | 34 const std::string& device_id, |
31 const url::Origin& security_origin) override; | 35 const url::Origin& security_origin) override; |
32 }; | 36 }; |
33 | 37 |
34 } // namespace content | 38 } // namespace content |
35 | 39 |
36 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY
_H_ | 40 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY
_H_ |
OLD | NEW |