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

Side by Side Diff: webkit/media/media_stream_client.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/media/video_frame_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace media { 12 namespace media {
13 class MessageLoopFactory;
13 class VideoDecoder; 14 class VideoDecoder;
14 class MessageLoopFactory;
15 } 15 }
16 16
17 namespace webkit_media { 17 namespace webkit_media {
18 18
19 class VideoFrameProvider;
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 WebKit::WebURL url) = 0;
26 virtual scoped_refptr<webkit_media::VideoFrameProvider> GetVideoFrameProvider(
27 const GURL& url, const base::Closure& paint_cb) = 0;
23 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( 28 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
24 const GURL& url, 29 const GURL& url,
25 media::MessageLoopFactory* message_loop_factory) = 0; 30 media::MessageLoopFactory* message_loop_factory) = 0;
26 31
27 protected: 32 protected:
28 virtual ~MediaStreamClient() {} 33 virtual ~MediaStreamClient() {}
29 }; 34 };
30 35
31 } // namespace webkit_media 36 } // namespace webkit_media
32 37
33 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_ 38 #endif // WEBKIT_MEDIA_MEDIA_STREAM_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/media/video_frame_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698