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

Side by Side Diff: content/public/renderer/media_stream_client.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delegates Created 7 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_MEDIA_MEDIA_STREAM_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_PUBLIC_MEDIA_STREAM_CLIENT_H_
6 #define WEBKIT_RENDERER_MEDIA_MEDIA_STREAM_CLIENT_H_ 6 #define CONTENT_RENDERER_PUBLIC_MEDIA_STREAM_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "webkit/renderer/media/video_frame_provider.h" 10 #include "content/public/renderer/video_frame_provider.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace webkit_media { 14 namespace content {
15 15
16 class MediaStreamAudioRenderer; 16 class MediaStreamAudioRenderer;
17 17
18 // Define an interface for media stream client to get some information about 18 // Define an interface for media stream client to get some information about
19 // the media stream. 19 // the media stream.
20 class MediaStreamClient { 20 class MediaStreamClient {
scherkus (not reviewing) 2013/06/28 06:04:41 FYI now a public content interface
21 public: 21 public:
22 // Check if the |url| is derived from a media stream object. 22 // Check if the |url| is derived from a media stream object.
23 virtual bool IsMediaStream(const GURL& url) = 0; 23 virtual bool IsMediaStream(const GURL& url) = 0;
24 24
25 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( 25 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
26 const GURL& url, 26 const GURL& url,
27 const base::Closure& error_cb, 27 const base::Closure& error_cb,
28 const VideoFrameProvider::RepaintCB& repaint_cb) = 0; 28 const VideoFrameProvider::RepaintCB& repaint_cb) = 0;
29 29
30 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 30 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
31 const GURL& url) = 0; 31 const GURL& url) = 0;
32 32
33 protected: 33 protected:
34 virtual ~MediaStreamClient() {} 34 virtual ~MediaStreamClient() {}
35 }; 35 };
36 36
37 } // namespace webkit_media 37 } // namespace content
38 38
39 #endif // WEBKIT_RENDERER_MEDIA_MEDIA_STREAM_CLIENT_H_ 39 #endif // CONTENT_RENDERER_PUBLIC_MEDIA_STREAM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698