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 |