| 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 #include "media/cast/audio_sender/audio_sender.h" | 5 #include "media/cast/audio_sender/audio_sender.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "crypto/encryptor.h" | 10 #include "crypto/encryptor.h" |
| 11 #include "crypto/symmetric_key.h" | 11 #include "crypto/symmetric_key.h" |
| 12 #include "media/cast/audio_sender/audio_encoder.h" | 12 #include "media/cast/audio_sender/audio_encoder.h" |
| 13 #include "media/cast/cast_environment.h" | 13 #include "media/cast/cast_environment.h" |
| 14 #include "media/cast/net/rtp_sender/rtp_sender.h" |
| 14 #include "media/cast/rtcp/rtcp.h" | 15 #include "media/cast/rtcp/rtcp.h" |
| 15 #include "media/cast/rtp_sender/rtp_sender.h" | |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 namespace cast { | 18 namespace cast { |
| 19 | 19 |
| 20 const int64 kMinSchedulingDelayMs = 1; | 20 const int64 kMinSchedulingDelayMs = 1; |
| 21 | 21 |
| 22 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback { | 22 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback { |
| 23 public: | 23 public: |
| 24 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender) | 24 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender) |
| 25 : audio_sender_(audio_sender) { | 25 : audio_sender_(audio_sender) { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void AudioSender::SendRtcpReport() { | 201 void AudioSender::SendRtcpReport() { |
| 202 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); | 202 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); |
| 203 // We don't send audio logging messages since all captured audio frames will | 203 // We don't send audio logging messages since all captured audio frames will |
| 204 // be sent. | 204 // be sent. |
| 205 rtcp_.SendRtcpFromRtpSender(NULL); | 205 rtcp_.SendRtcpFromRtpSender(NULL); |
| 206 ScheduleNextRtcpReport(); | 206 ScheduleNextRtcpReport(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace cast | 209 } // namespace cast |
| 210 } // namespace media | 210 } // namespace media |
| OLD | NEW |