Index: content/renderer/media/user_media_client_impl.h |
diff --git a/content/renderer/media/user_media_client_impl.h b/content/renderer/media/user_media_client_impl.h |
index d4cfb25f00afbbd60cf845906b870dda270cb254..f920ca7420d40b624d3d0edbc3d94a20d60dc0bc 100644 |
--- a/content/renderer/media/user_media_client_impl.h |
+++ b/content/renderer/media/user_media_client_impl.h |
@@ -31,6 +31,7 @@ |
namespace content { |
class PeerConnectionDependencyFactory; |
+class MediaStreamAudioSource; |
class MediaStreamDispatcher; |
class MediaStreamVideoSource; |
class VideoCapturerDelegate; |
@@ -119,8 +120,12 @@ class CONTENT_EXPORT UserMediaClientImpl |
virtual void EnumerateSourcesSucceded( |
blink::WebMediaStreamTrackSourcesRequest* request, |
blink::WebVector<blink::WebSourceInfo>& sources); |
- // Creates a MediaStreamVideoSource object. |
- // This is virtual for test purposes. |
+ |
+ // Creates a MediaStreamAudioSource/MediaStreamVideoSource objects. |
+ // These are virtual for test purposes. |
+ virtual MediaStreamAudioSource* CreateAudioSource( |
+ const StreamDeviceInfo& device, |
+ const blink::WebMediaConstraints& constraints); |
virtual MediaStreamVideoSource* CreateVideoSource( |
const StreamDeviceInfo& device, |
const MediaStreamSource::SourceStoppedCallback& stop_callback); |
@@ -147,8 +152,7 @@ class CONTENT_EXPORT UserMediaClientImpl |
blink::WebMediaStream web_stream; |
blink::WebUserMediaRequest request; |
- void StartAudioTrack(const blink::WebMediaStreamTrack& track, |
- const blink::WebMediaConstraints& constraints); |
+ void StartAudioTrack(const blink::WebMediaStreamTrack& track); |
blink::WebMediaStreamTrack CreateAndStartVideoTrack( |
const blink::WebMediaStreamSource& source, |