OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_MEDIA_STREAM_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_SHELL_MEDIA_STREAM_CLIENT_H_ |
6 #define CONTENT_SHELL_RENDERER_SHELL_MEDIA_STREAM_CLIENT_H_ | 6 #define CONTENT_SHELL_RENDERER_SHELL_MEDIA_STREAM_CLIENT_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "content/renderer/media/media_stream_client.h" |
9 #include "third_party/WebKit/public/platform/WebURL.h" | 10 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "webkit/renderer/media/media_stream_client.h" | |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // ShellMediaStreamClient is a mock implementation of | 14 // ShellMediaStreamClient is a mock implementation of |
15 // webkit_media::MediaStreamClient used when running layout tests. | 15 // webkit_media::MediaStreamClient used when running layout tests. |
16 class ShellMediaStreamClient : public webkit_media::MediaStreamClient { | 16 class ShellMediaStreamClient : public MediaStreamClient { |
17 public: | 17 public: |
18 ShellMediaStreamClient(); | 18 ShellMediaStreamClient(); |
19 virtual ~ShellMediaStreamClient(); | 19 virtual ~ShellMediaStreamClient(); |
20 | 20 |
21 // webkit_media::MediaStreamClient implementation. | 21 // MediaStreamClient implementation. |
22 virtual bool IsMediaStream(const GURL& url) OVERRIDE; | 22 virtual bool IsMediaStream(const GURL& url) OVERRIDE; |
23 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider( | 23 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( |
24 const GURL& url, | 24 const GURL& url, |
25 const base::Closure& error_cb, | 25 const base::Closure& error_cb, |
26 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; | 26 const VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; |
27 virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer> | 27 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( |
28 GetAudioRenderer(const GURL& url) OVERRIDE; | 28 const GURL& url) OVERRIDE; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace content | 31 } // namespace content |
32 | 32 |
33 #endif // CONTENT_SHELL_RENDERER_SHELL_MEDIA_STREAM_CLIENT_H_ | 33 #endif // CONTENT_SHELL_RENDERER_SHELL_MEDIA_STREAM_CLIENT_H_ |
OLD | NEW |