| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 int sdp_mline_index, | 124 int sdp_mline_index, |
| 125 const std::string& sdp); | 125 const std::string& sdp); |
| 126 | 126 |
| 127 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); | 127 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); |
| 128 | 128 |
| 129 static void AddNativeAudioTrackToBlinkTrack( | 129 static void AddNativeAudioTrackToBlinkTrack( |
| 130 webrtc::MediaStreamTrackInterface* native_track, | 130 webrtc::MediaStreamTrackInterface* native_track, |
| 131 const blink::WebMediaStreamTrack& webkit_track, | 131 const blink::WebMediaStreamTrack& webkit_track, |
| 132 bool is_local_track); | 132 bool is_local_track); |
| 133 | 133 |
| 134 scoped_refptr<base::MessageLoopProxy> GetWebRtcWorkerThread() const; |
| 135 |
| 134 protected: | 136 protected: |
| 135 // Asks the PeerConnection factory to create a Local Audio Source. | 137 // Asks the PeerConnection factory to create a Local Audio Source. |
| 136 virtual scoped_refptr<webrtc::AudioSourceInterface> | 138 virtual scoped_refptr<webrtc::AudioSourceInterface> |
| 137 CreateLocalAudioSource( | 139 CreateLocalAudioSource( |
| 138 const webrtc::MediaConstraintsInterface* constraints); | 140 const webrtc::MediaConstraintsInterface* constraints); |
| 139 | 141 |
| 140 // Creates a media::AudioCapturerSource with an implementation that is | 142 // Creates a media::AudioCapturerSource with an implementation that is |
| 141 // specific for a WebAudio source. The created WebAudioCapturerSource | 143 // specific for a WebAudio source. The created WebAudioCapturerSource |
| 142 // instance will function as audio source instead of the default | 144 // instance will function as audio source instead of the default |
| 143 // WebRtcAudioCapturer. | 145 // WebRtcAudioCapturer. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 base::Thread chrome_worker_thread_; | 209 base::Thread chrome_worker_thread_; |
| 208 | 210 |
| 209 base::File aec_dump_file_; | 211 base::File aec_dump_file_; |
| 210 | 212 |
| 211 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 213 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 } // namespace content | 216 } // namespace content |
| 215 | 217 |
| 216 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 218 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |