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

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: 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 side-by-side diff with in-line comments
Download patch
Index: webkit/media/media_stream_client.h
===================================================================
--- webkit/media/media_stream_client.h (revision 154837)
+++ 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"
scherkus (not reviewing) 2012/09/07 11:44:03 instead of #include use a fwd decl
wjia(left Chromium) 2012/09/13 01:22:07 This header file is needed because of RepaintCB is
class GURL;
@@ -20,6 +22,13 @@
// the media stream.
class MediaStreamClient {
public:
+ virtual bool IsMediaStream(const GURL& url) = 0;
scherkus (not reviewing) 2012/09/07 11:44:03 docs for interface methods?
wjia(left Chromium) 2012/09/13 01:22:07 Done.
+
+ virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
+ const GURL& url,
+ const base::Closure& error_cb,
+ const RepaintCB& repaint_cb) = 0;
+
virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
const GURL& url,
media::MessageLoopFactory* message_loop_factory) = 0;

Powered by Google App Engine
This is Rietveld 408576698