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

Side by Side Diff: content/shell/renderer/layout_test/test_media_stream_renderer_factory.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_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"
11 10
12 namespace content { 11 namespace content {
13 12
14 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when 13 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when
15 // running layout tests. 14 // running layout tests.
16 class TestMediaStreamRendererFactory : public MediaStreamRendererFactory { 15 class TestMediaStreamRendererFactory : public MediaStreamRendererFactory {
17 public: 16 public:
18 TestMediaStreamRendererFactory(); 17 TestMediaStreamRendererFactory();
19 ~TestMediaStreamRendererFactory() override; 18 ~TestMediaStreamRendererFactory() override;
20 19
21 // MediaStreamRendererFactory implementation. 20 // MediaStreamRendererFactory implementation.
22 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( 21 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
23 const GURL& url, 22 const blink::WebMediaStream& web_stream,
24 const base::Closure& error_cb, 23 const base::Closure& error_cb,
25 const VideoFrameProvider::RepaintCB& repaint_cb, 24 const VideoFrameProvider::RepaintCB& repaint_cb,
26 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 25 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
27 const scoped_refptr<base::TaskRunner>& worker_task_runner, 26 const scoped_refptr<base::TaskRunner>& worker_task_runner,
28 media::GpuVideoAcceleratorFactories* gpu_factories) override; 27 media::GpuVideoAcceleratorFactories* gpu_factories) override;
29 28
30 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 29 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
31 const GURL& url, 30 const blink::WebMediaStream& web_stream,
32 int render_frame_id, 31 int render_frame_id,
33 const std::string& device_id, 32 const std::string& device_id,
34 const url::Origin& security_origin) override; 33 const url::Origin& security_origin) override;
35 }; 34 };
36 35
37 } // namespace content 36 } // namespace content
38 37
39 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY _H_ 38 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698