Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1716)

Side by Side Diff: trunk/src/media/cast/audio_sender/audio_sender.cc

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "media/cast/audio_sender/audio_encoder.h" 10 #include "media/cast/audio_sender/audio_encoder.h"
11 #include "media/cast/rtcp/rtcp.h" 11 #include "media/cast/rtcp/rtcp.h"
12 #include "media/cast/rtp_sender/rtp_sender.h" 12 #include "media/cast/rtp_sender/rtp_sender.h"
13 13
14 namespace media { 14 namespace media {
15 namespace cast { 15 namespace cast {
16 16
17 const int64 kMinSchedulingDelayMs = 1; 17 const int64 kMinSchedulingDelayMs = 1;
18 18
19 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback { 19 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback {
20 public: 20 public:
21 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender) 21 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender)
22 : audio_sender_(audio_sender) { 22 : audio_sender_(audio_sender) {
23 } 23 }
24 24
25 virtual void OnReceivedSendReportRequest() OVERRIDE {
26 DCHECK(false) << "Invalid callback";
27 }
28
25 virtual void OnReceivedReportBlock( 29 virtual void OnReceivedReportBlock(
26 const RtcpReportBlock& report_block) OVERRIDE { 30 const RtcpReportBlock& report_block) OVERRIDE {
27 DCHECK(false) << "Invalid callback"; 31 DCHECK(false) << "Invalid callback";
28 } 32 }
29 33
30 virtual void OnReceivedIntraFrameRequest() OVERRIDE { 34 virtual void OnReceivedIntraFrameRequest() OVERRIDE {
31 DCHECK(false) << "Invalid callback"; 35 DCHECK(false) << "Invalid callback";
32 } 36 }
33 37
34 38
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 time_to_next); 158 time_to_next);
155 } 159 }
156 160
157 void AudioSender::SendRtcpReport() { 161 void AudioSender::SendRtcpReport() {
158 rtcp_.SendRtcpReport(incoming_feedback_ssrc_); 162 rtcp_.SendRtcpReport(incoming_feedback_ssrc_);
159 ScheduleNextRtcpReport(); 163 ScheduleNextRtcpReport();
160 } 164 }
161 165
162 } // namespace cast 166 } // namespace cast
163 } // namespace media 167 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698