Chromium Code Reviews| Index: webkit/support/test_media_stream_client.h |
| =================================================================== |
| --- webkit/support/test_media_stream_client.h (revision 0) |
| +++ webkit/support/test_media_stream_client.h (revision 0) |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// TestMediaStreamClient is an implementation of webkit_media::MediaStreamClient |
| +// and used with WebKit::WebUserMediaClientMock to provide corresponding video |
| +// decoder to media pipeline. |
| + |
| +#ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| +#define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| + |
| +#include "webkit/media/media_stream_client.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
|
acolwell GONE FROM CHROMIUM
2012/01/06 18:09:16
nit: includes should be in alphabetical order.
wjia(left Chromium)
2012/01/06 22:18:59
Done.
|
| + |
| +namespace webkit_support { |
| + |
| +class MediaStreamUtil { |
| + public: |
| + virtual bool IsMockStream(const WebKit::WebURL& url) = 0; |
| +}; |
| + |
| +class TestMediaStreamClient : public webkit_media::MediaStreamClient { |
| + public: |
| + explicit TestMediaStreamClient(MediaStreamUtil* media_stream_util); |
| + virtual ~TestMediaStreamClient() {} |
| + |
| + // Implement webkit_media::MediaStreamClient. |
| + virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( |
| + const GURL& url, |
| + media::MessageLoopFactory* message_loop_factory) OVERRIDE; |
| + |
| + private: |
| + MediaStreamUtil* media_stream_util_; |
| +}; |
| + |
| +} // namespace webkit_support |
| + |
| +#endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ |
| Property changes on: webkit/support/test_media_stream_client.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |