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

Unified Diff: webkit/media/video_frame_provider.h

Issue 10382048: create WebMediaPlayer based on URL (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/media/media_stream_client.h ('k') | webkit/media/webkit_media.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/video_frame_provider.h
===================================================================
--- webkit/media/video_frame_provider.h (revision 0)
+++ webkit/media/video_frame_provider.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
+#define WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace media {
+class VideoFrame;
+}
+
+namespace webkit_media {
+
+// Define an interface for media stream client to get some information about
+// the media stream.
+class VideoFrameProvider
+ : public base::RefCountedThreadSafe<VideoFrameProvider> {
+ public:
+ VideoFrameProvider() {}
+ virtual void Start() = 0;
+ virtual void Stop(const base::Closure& callback) = 0;
+ virtual void GetCurrentFrame(scoped_refptr<media::VideoFrame> *frame_out) = 0;
+ virtual void PutCurrentFrame(
+ scoped_refptr<media::VideoFrame> returned_frame) = 0;
+ // Add more API, such as GetFrameSize, etc.
+
+ protected:
+ friend class base::RefCountedThreadSafe<VideoFrameProvider>;
+ virtual ~VideoFrameProvider() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VideoFrameProvider);
+};
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
Property changes on: webkit/media/video_frame_provider.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/media/media_stream_client.h ('k') | webkit/media/webkit_media.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698