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

Side by Side Diff: webkit/media/video_frame_provider.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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
6 #define WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
7
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10
11 namespace media {
12 class VideoFrame;
13 }
14
15 namespace webkit_media {
16
17 typedef base::Callback<void(const scoped_refptr<media::VideoFrame>&)> RepaintCB;
scherkus (not reviewing) 2012/09/07 11:44:03 move this inside VFP class
wjia(left Chromium) 2012/09/13 01:22:07 Done.
18
19 // Define an interface to provide a sequence of video frames to clients.
20 class VideoFrameProvider
21 : public base::RefCountedThreadSafe<VideoFrameProvider> {
scherkus (not reviewing) 2012/09/07 11:44:03 does this have to be refcounted? would having imp
wjia(left Chromium) 2012/09/13 01:22:07 Some derived class needs ref counted, because it w
scherkus (not reviewing) 2012/09/13 10:25:24 Being accessed on two threads doesn't imply a clas
wjia(left Chromium) 2012/09/19 03:22:06 You are right. I have thought about refactoring me
22 public:
23 virtual void Start() = 0;
scherkus (not reviewing) 2012/09/07 11:44:03 docs for interface methods
wjia(left Chromium) 2012/09/13 01:22:07 Done.
24 virtual void Stop() = 0;
25 virtual void Play() = 0;
26 virtual void Pause() = 0;
27
28 protected:
29 friend class base::RefCountedThreadSafe<VideoFrameProvider>;
30 VideoFrameProvider();
31 virtual ~VideoFrameProvider();
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(VideoFrameProvider);
35 };
36
37 } // namespace webkit_media
38
39 #endif // WEBKIT_MEDIA_VIDEO_FRAME_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698