| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/renderer/media/webrtc/media_stream_remote_audio_track.h" | 5 #include "content/renderer/media/webrtc/media_stream_remote_audio_track.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <list> | 9 #include <list> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 #include "content/public/renderer/media_stream_audio_sink.h" | 12 #include "content/public/renderer/media_stream_audio_sink.h" |
| 11 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 13 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
| 12 | 14 |
| 13 namespace content { | 15 namespace content { |
| 14 | 16 |
| 15 class MediaStreamRemoteAudioSource::AudioSink | 17 class MediaStreamRemoteAudioSource::AudioSink |
| 16 : public webrtc::AudioTrackSinkInterface { | 18 : public webrtc::AudioTrackSinkInterface { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 if (sink_) | 221 if (sink_) |
| 220 sink_->RemoveAll(track); | 222 sink_->RemoveAll(track); |
| 221 } | 223 } |
| 222 | 224 |
| 223 webrtc::AudioTrackInterface* MediaStreamRemoteAudioSource::GetAudioAdapter() { | 225 webrtc::AudioTrackInterface* MediaStreamRemoteAudioSource::GetAudioAdapter() { |
| 224 DCHECK(thread_checker_.CalledOnValidThread()); | 226 DCHECK(thread_checker_.CalledOnValidThread()); |
| 225 return track_.get(); | 227 return track_.get(); |
| 226 } | 228 } |
| 227 | 229 |
| 228 } // namespace content | 230 } // namespace content |
| OLD | NEW |