blob: d231e7cb999d16f70122498c43715ef0dcb2dec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// 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.
// TODO(wjia): remove this class once
// https://bugs.webkit.org/show_bug.cgi?id=113633 is fixed, since it has been
// moved into webkit/mocks.
#ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
#define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
#include "base/callback_forward.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "webkit/media/media_stream_client.h"
namespace webkit_media {
class MediaStreamAudioRenderer;
}
namespace webkit_support {
class TestMediaStreamClient : public webkit_media::MediaStreamClient {
public:
TestMediaStreamClient();
virtual ~TestMediaStreamClient();
// Implement webkit_media::MediaStreamClient.
virtual bool IsMediaStream(const GURL& url) OVERRIDE;
virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider(
const GURL& url,
const base::Closure& error_cb,
const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE;
virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer>
GetAudioRenderer(const GURL& url) OVERRIDE;
};
} // namespace webkit_support
#endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
|