Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / shell / renderer / layout_test / test_media_stream_renderer_factory.h
blob2b9a2949f350ac38bc7be21069b7fff4b05ca658
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_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_
8 #include "base/callback_forward.h"
9 #include "content/public/renderer/media_stream_renderer_factory.h"
10 #include "third_party/WebKit/public/platform/WebURL.h"
12 namespace content {
14 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when
15 // running layout tests.
16 class TestMediaStreamRendererFactory : public MediaStreamRendererFactory {
17 public:
18 TestMediaStreamRendererFactory();
19 ~TestMediaStreamRendererFactory() override;
21 // MediaStreamRendererFactory implementation.
22 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
23 const GURL& url,
24 const base::Closure& error_cb,
25 const VideoFrameProvider::RepaintCB& repaint_cb) override;
27 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
28 const GURL& url,
29 int render_frame_id) override;
32 } // namespace content
34 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_