| OLD | NEW |
| 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 CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "content/renderer/media/media_stream_track.h" | 14 #include "content/renderer/media/media_stream_track.h" |
| 15 #include "content/renderer/media/tagged_list.h" | 15 #include "content/renderer/media/tagged_list.h" |
| 16 #include "content/renderer/media/webrtc_audio_device_impl.h" | 16 #include "content/renderer/media/webrtc_audio_device_impl.h" |
| 17 #include "content/renderer/media/webrtc_local_audio_source_provider.h" | 17 #include "content/renderer/media/webrtc_local_audio_source_provider.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class MediaStreamAudioLevelCalculator; |
| 21 class MediaStreamAudioSink; | 22 class MediaStreamAudioSink; |
| 22 class MediaStreamAudioSinkOwner; | 23 class MediaStreamAudioSinkOwner; |
| 23 class MediaStreamAudioTrackSink; | 24 class MediaStreamAudioTrackSink; |
| 24 class PeerConnectionAudioSink; | 25 class PeerConnectionAudioSink; |
| 25 class WebAudioCapturerSource; | 26 class WebAudioCapturerSource; |
| 26 class WebRtcAudioCapturer; | 27 class WebRtcAudioCapturer; |
| 27 class WebRtcLocalAudioTrackAdapter; | 28 class WebRtcLocalAudioTrackAdapter; |
| 28 | 29 |
| 29 // A WebRtcLocalAudioTrack instance contains the implementations of | 30 // A WebRtcLocalAudioTrack instance contains the implementations of |
| 30 // MediaStreamTrackExtraData. | 31 // MediaStreamTrackExtraData. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 mutable base::Lock lock_; | 110 mutable base::Lock lock_; |
| 110 | 111 |
| 111 // Audio parameters of the audio capture stream. | 112 // Audio parameters of the audio capture stream. |
| 112 // Accessed on only the audio capture thread. | 113 // Accessed on only the audio capture thread. |
| 113 media::AudioParameters audio_parameters_; | 114 media::AudioParameters audio_parameters_; |
| 114 | 115 |
| 115 // The source provider to feed the track data to other clients like | 116 // The source provider to feed the track data to other clients like |
| 116 // WebAudio. | 117 // WebAudio. |
| 117 scoped_ptr<WebRtcLocalAudioSourceProvider> source_provider_; | 118 scoped_ptr<WebRtcLocalAudioSourceProvider> source_provider_; |
| 118 | 119 |
| 120 // Used to calculate the signal level that shows in the UI. |
| 121 // Accessed on only the audio thread. |
| 122 scoped_ptr<MediaStreamAudioLevelCalculator> level_calculator_; |
| 123 |
| 119 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); | 124 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); |
| 120 }; | 125 }; |
| 121 | 126 |
| 122 } // namespace content | 127 } // namespace content |
| 123 | 128 |
| 124 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 129 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
| OLD | NEW |