Index: content/renderer/media/webrtc/peer_connection_dependency_factory.h |
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.h b/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
index 212eefb20d2ed70cfc54ba1c040b5242b5405b23..5b1b6527f9ece94889f049329e8c1cfe38a3d394 100644 |
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
@@ -152,9 +152,9 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory |
// Creates a media::AudioCapturerSource with an implementation that is |
// specific for a WebAudio source. The created WebAudioCapturerSource |
// instance will function as audio source instead of the default |
- // WebRtcAudioCapturer. |
- virtual scoped_refptr<WebAudioCapturerSource> CreateWebAudioSource( |
- blink::WebMediaStreamSource* source); |
+ // WebRtcAudioCapturer. Ownership of the new WebAudioCapturerSource is |
+ // transferred to |source|. |
+ virtual void CreateWebAudioSource(blink::WebMediaStreamSource* source); |
// Asks the PeerConnection factory to create a Local VideoTrack object with |
// the video source using |capturer|. |
@@ -169,17 +169,12 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory |
// Returns a new capturer or existing capturer based on the |render_frame_id| |
// and |device_info|; if both are valid, it reuses existing capture if any -- |
// otherwise it creates a new capturer. |
- virtual scoped_refptr<WebRtcAudioCapturer> CreateAudioCapturer( |
+ virtual scoped_ptr<WebRtcAudioCapturer> CreateAudioCapturer( |
int render_frame_id, |
const StreamDeviceInfo& device_info, |
const blink::WebMediaConstraints& constraints, |
MediaStreamAudioSource* audio_source); |
- // Adds the audio device as a sink to the audio track and starts the local |
- // audio track. This is virtual for test purposes since no real audio device |
- // exist in unit tests. |
- virtual void StartLocalAudioTrack(WebRtcLocalAudioTrack* audio_track); |
- |
private: |
// Implement base::MessageLoop::DestructionObserver. |
// This makes sure the libjingle PeerConnectionFactory is released before |