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

Unified Diff: content/renderer/media/media_stream_impl.h

Issue 11270012: Adding audio support to the new webmediaplyer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a lock to protect the |renderer_| Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_impl.h
diff --git a/content/renderer/media/media_stream_impl.h b/content/renderer/media/media_stream_impl.h
index 110e23a39661ea801ba1a3ab740679216b410eb3..9bd3eaba9f415b8f203c6de724ba84ea3e7bb237 100644
--- a/content/renderer/media/media_stream_impl.h
+++ b/content/renderer/media/media_stream_impl.h
@@ -22,6 +22,10 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaRequest.h"
#include "webkit/media/media_stream_client.h"
+namespace media {
+class RtcAudioRenderer;
+}
+
namespace WebKit {
class WebMediaStreamDescriptor;
}
@@ -30,6 +34,7 @@ namespace content {
class MediaStreamDependencyFactory;
class MediaStreamDispatcher;
class VideoCaptureImplManager;
+class WebRtcAudioRenderer;
// MediaStreamImpl is a delegate for the Media Stream API messages used by
// WebKit. It ties together WebKit, native PeerConnection in libjingle and
@@ -76,6 +81,8 @@ class CONTENT_EXPORT MediaStreamImpl
virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
const GURL& url,
media::MessageLoopFactory* message_loop_factory) OVERRIDE;
+ virtual scoped_refptr<media::RtcAudioRenderer> GetAudioRenderer(
+ const GURL& url) OVERRIDE;
// MediaStreamDispatcherEventHandler implementation.
virtual void OnStreamGenerated(
@@ -145,6 +152,8 @@ class CONTENT_EXPORT MediaStreamImpl
scoped_refptr<media::VideoDecoder> CreateRemoteVideoDecoder(
webrtc::MediaStreamInterface* stream,
media::MessageLoopFactory* message_loop_factory);
+ scoped_refptr<content::WebRtcAudioRenderer> CreateRemoteAudioRenderer(
wjia(left Chromium) 2012/10/24 22:05:15 nit: no need content::
no longer working on chromium 2012/10/25 10:19:41 Done.
+ webrtc::MediaStreamInterface* stream);
// Weak ref to a MediaStreamDependencyFactory, owned by the RenderThread.
// It's valid for the lifetime of RenderThread.

Powered by Google App Engine
This is Rietveld 408576698