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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/media_stream_client.h
===================================================================
--- webkit/media/media_stream_client.h (revision 158069)
+++ webkit/media/media_stream_client.h (working copy)
@@ -5,7 +5,9 @@
#ifndef WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
#define WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "webkit/media/video_frame_provider.h"
class GURL;
@@ -20,6 +22,14 @@
// the media stream.
class MediaStreamClient {
public:
+ // Check if the |url| is derived from a media stream object.
+ virtual bool IsMediaStream(const GURL& url) = 0;
+
+ virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
+ const GURL& url,
+ const base::Closure& error_cb,
+ const VideoFrameProvider::RepaintCB& repaint_cb) = 0;
+
virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
const GURL& url,
media::MessageLoopFactory* message_loop_factory) = 0;
« 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