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

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

Issue 15005005: Use a shared thread for media operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « webkit/media/webmediaplayer_params.cc ('k') | webkit/mocks/test_media_stream_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_ 9 #ifndef WEBKIT_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_
10 #define WEBKIT_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_ 10 #define WEBKIT_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
14 #include "webkit/media/media_stream_client.h" 13 #include "webkit/media/media_stream_client.h"
15 14
16 namespace WebKit {
17 class WebFrame;
18 class WebMediaPlayer;
19 class WebMediaPlayerClient;
20 }
21
22 namespace webkit_media { 15 namespace webkit_media {
23 class MediaStreamAudioRenderer; 16 class MediaStreamAudioRenderer;
24 class MediaStreamClient;
25 } 17 }
26 18
27 namespace webkit_glue { 19 namespace webkit_glue {
28 20
29 // This is used by WebFrameClient::createMediaPlayer().
30 WebKit::WebMediaPlayer* CreateMediaPlayer(
31 WebKit::WebFrame* frame,
32 const WebKit::WebURL& url,
33 WebKit::WebMediaPlayerClient* client,
34 webkit_media::MediaStreamClient* media_stream_client);
35
36 class TestMediaStreamClient : public webkit_media::MediaStreamClient { 21 class TestMediaStreamClient : public webkit_media::MediaStreamClient {
37 public: 22 public:
38 TestMediaStreamClient(); 23 TestMediaStreamClient();
39 virtual ~TestMediaStreamClient(); 24 virtual ~TestMediaStreamClient();
40 25
41 // Implement webkit_media::MediaStreamClient. 26 // Implement webkit_media::MediaStreamClient.
42 virtual bool IsMediaStream(const GURL& url) OVERRIDE; 27 virtual bool IsMediaStream(const GURL& url) OVERRIDE;
43 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider( 28 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider(
44 const GURL& url, 29 const GURL& url,
45 const base::Closure& error_cb, 30 const base::Closure& error_cb,
46 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; 31 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE;
47 virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer> 32 virtual scoped_refptr<webkit_media::MediaStreamAudioRenderer>
48 GetAudioRenderer(const GURL& url) OVERRIDE; 33 GetAudioRenderer(const GURL& url) OVERRIDE;
49 }; 34 };
50 35
51 } // namespace webkit_glue 36 } // namespace webkit_glue
52 37
53 #endif // WEBKIT_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_ 38 #endif // WEBKIT_MOCKS_TEST_MEDIA_STREAM_CLIENT_H_
OLDNEW
« no previous file with comments | « webkit/media/webmediaplayer_params.cc ('k') | webkit/mocks/test_media_stream_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698