Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: webkit/support/test_media_stream_client.h

Issue 10918052: create a separate WebMediaPlayer for URL derived from media stream (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win build Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
11 11
12 #include "base/callback.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
13 #include "webkit/media/media_stream_client.h" 14 #include "webkit/media/media_stream_client.h"
15 #include "webkit/media/video_frame_provider.h"
scherkus (not reviewing) 2012/09/07 11:44:03 media_stream_client.h handles this #include for yo
wjia(left Chromium) 2012/09/13 01:22:07 Done.
14 16
15 namespace webkit_support { 17 namespace webkit_support {
16 18
17 // TODO(tommyw): Remove deprecated class after corresponding
18 // WebKit patch is committed.
19 class MediaStreamUtil {
20 public:
21 virtual bool IsMockStream(const WebKit::WebURL& url) = 0;
22 };
23
24 class TestMediaStreamClient : public webkit_media::MediaStreamClient { 19 class TestMediaStreamClient : public webkit_media::MediaStreamClient {
25 public: 20 public:
26 // TODO(tommyw): Remove deprecated constructor after 21 TestMediaStreamClient();
27 // corresponding WebKit patch is committed. 22 virtual ~TestMediaStreamClient();
28 explicit TestMediaStreamClient(MediaStreamUtil* media_stream_util) {}
29
30 TestMediaStreamClient() {}
31 virtual ~TestMediaStreamClient() {}
32 23
33 // Implement webkit_media::MediaStreamClient. 24 // Implement webkit_media::MediaStreamClient.
25 virtual bool IsMediaStream(const GURL& url) OVERRIDE;
26 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider(
27 const GURL& url,
28 const base::Closure& error_cb,
29 const webkit_media::RepaintCB& repaint_cb) OVERRIDE;
34 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( 30 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
35 const GURL& url, 31 const GURL& url,
36 media::MessageLoopFactory* message_loop_factory) OVERRIDE; 32 media::MessageLoopFactory* message_loop_factory) OVERRIDE;
37 }; 33 };
38 34
39 } // namespace webkit_support 35 } // namespace webkit_support
40 36
41 #endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_ 37 #endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698