Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 // TestMediaStreamClient is an implementation of webkit_media::MediaStreamClient | |
| 6 // and used with WebKit::WebUserMediaClientMock to provide corresponding video | |
| 7 // decoder to media pipeline. | |
| 8 | |
| 9 #ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | |
| 10 #define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | |
| 11 | |
| 12 #include "webkit/media/media_stream_client.h" | |
| 13 | |
| 14 namespace WebKit { | |
| 15 class WebUserMediaClientMock; | |
| 16 } | |
| 17 | |
| 18 namespace webkit_support { | |
| 19 | |
| 20 class TestMediaStreamClient : public webkit_media::MediaStreamClient { | |
| 21 public: | |
| 22 explicit TestMediaStreamClient( | |
| 23 WebKit::WebUserMediaClientMock* userMediaClientMock); | |
|
scherkus (not reviewing)
2011/12/21 20:26:45
fix to unix_hacker style here + below
wjia(left Chromium)
2012/01/03 17:08:12
Done.
| |
| 24 virtual ~TestMediaStreamClient() { } | |
|
scherkus (not reviewing)
2011/12/21 20:26:45
{ } -> {}
wjia(left Chromium)
2012/01/03 17:08:12
Done.
| |
| 25 | |
| 26 // Implement webkit_media::MediaStreamClient. | |
| 27 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( | |
| 28 const GURL& url, media::MessageLoopFactory* message_loop_factory); | |
| 29 | |
| 30 private: | |
| 31 WebKit::WebUserMediaClientMock* m_userMediaClientMock; | |
| 32 }; | |
| 33 | |
| 34 } // namespace webkit_support | |
| 35 | |
| 36 #endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ | |
| OLD | NEW |