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

Side by Side Diff: webkit/media/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: code review Created 8 years, 2 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 | « media/video/capture/video_capture.h ('k') | webkit/media/simple_video_frame_provider.h » ('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) 2011 The Chromium Authors. All rights reserved. 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 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 #ifndef WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ 5 #ifndef WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
6 #define WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ 6 #define WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
7 7
8 #include "base/callback.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "webkit/media/video_frame_provider.h"
9 11
10 class GURL; 12 class GURL;
11 13
12 namespace media { 14 namespace media {
13 class VideoDecoder; 15 class VideoDecoder;
14 class MessageLoopFactory; 16 class MessageLoopFactory;
15 } 17 }
16 18
17 namespace webkit_media { 19 namespace webkit_media {
18 20
19 // Define an interface for media stream client to get some information about 21 // Define an interface for media stream client to get some information about
20 // the media stream. 22 // the media stream.
21 class MediaStreamClient { 23 class MediaStreamClient {
22 public: 24 public:
25 // Check if the |url| is derived from a media stream object.
26 virtual bool IsMediaStream(const GURL& url) = 0;
27
28 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
29 const GURL& url,
30 const base::Closure& error_cb,
31 const VideoFrameProvider::RepaintCB& repaint_cb) = 0;
32
23 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( 33 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
24 const GURL& url, 34 const GURL& url,
25 media::MessageLoopFactory* message_loop_factory) = 0; 35 media::MessageLoopFactory* message_loop_factory) = 0;
26 36
27 protected: 37 protected:
28 virtual ~MediaStreamClient() {} 38 virtual ~MediaStreamClient() {}
29 }; 39 };
30 40
31 } // namespace webkit_media 41 } // namespace webkit_media
32 42
33 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ 43 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
OLDNEW
« no previous file with comments | « media/video/capture/video_capture.h ('k') | webkit/media/simple_video_frame_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698