| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // TestMediaStreamClient is an implementation of webkit_media::MediaStreamClient | 5 // TestMediaStreamClient is an implementation of webkit_media::MediaStreamClient |
| 6 // and used with WebKit::WebUserMediaClientMock to provide corresponding video | 6 // and used with WebKit::WebUserMediaClientMock to provide corresponding video |
| 7 // decoder to media pipeline. | 7 // decoder to media pipeline. |
| 8 | 8 |
| 9 #ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | 9 #ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| 10 #define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | 10 #define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 TestMediaStreamClient(); | 24 TestMediaStreamClient(); |
| 25 virtual ~TestMediaStreamClient(); | 25 virtual ~TestMediaStreamClient(); |
| 26 | 26 |
| 27 // Implement webkit_media::MediaStreamClient. | 27 // Implement webkit_media::MediaStreamClient. |
| 28 virtual bool IsMediaStream(const GURL& url) OVERRIDE; | 28 virtual bool IsMediaStream(const GURL& url) OVERRIDE; |
| 29 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider( | 29 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider( |
| 30 const GURL& url, | 30 const GURL& url, |
| 31 const base::Closure& error_cb, | 31 const base::Closure& error_cb, |
| 32 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; | 32 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; |
| 33 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( | |
| 34 const GURL& url, | |
| 35 const scoped_refptr<base::MessageLoopProxy>& message_loop) OVERRIDE; | |
| 36 virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer> | 33 virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer> |
| 37 GetAudioRenderer(const GURL& url) OVERRIDE; | 34 GetAudioRenderer(const GURL& url) OVERRIDE; |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 } // namespace webkit_support | 37 } // namespace webkit_support |
| 41 | 38 |
| 42 #endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | 39 #endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| OLD | NEW |