OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ | 5 #ifndef WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ |
6 #define WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ | 6 #define WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #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
| |
9 | 11 |
10 class GURL; | 12 class GURL; |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 class VideoDecoder; | 15 class VideoDecoder; |
14 class MessageLoopFactory; | 16 class MessageLoopFactory; |
15 } | 17 } |
16 | 18 |
17 namespace webkit_media { | 19 namespace webkit_media { |
18 | 20 |
19 // Define an interface for media stream client to get some information about | 21 // Define an interface for media stream client to get some information about |
20 // the media stream. | 22 // the media stream. |
21 class MediaStreamClient { | 23 class MediaStreamClient { |
22 public: | 24 public: |
25 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.
| |
26 | |
27 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( | |
28 const GURL& url, | |
29 const base::Closure& error_cb, | |
30 const RepaintCB& repaint_cb) = 0; | |
31 | |
23 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( | 32 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( |
24 const GURL& url, | 33 const GURL& url, |
25 media::MessageLoopFactory* message_loop_factory) = 0; | 34 media::MessageLoopFactory* message_loop_factory) = 0; |
26 | 35 |
27 protected: | 36 protected: |
28 virtual ~MediaStreamClient() {} | 37 virtual ~MediaStreamClient() {} |
29 }; | 38 }; |
30 | 39 |
31 } // namespace webkit_media | 40 } // namespace webkit_media |
32 | 41 |
33 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ | 42 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ |
OLD | NEW |