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

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

Issue 24586003: Be able to build cast_unittest and related targets in Chrome tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix warnings 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 { 25 virtual void OnReceivedSendReportRequest() {
hubbe 2013/09/26 23:03:20 Why only this one?
Alpha Left Google 2013/09/27 00:45:13 This method is no more in the base class. I should
hubbe 2013/09/27 19:22:53 Please do. (or add TODO)
Alpha Left Google 2013/09/27 21:13:53 Already removed.
26 DCHECK(false) << "Invalid callback"; 26 DCHECK(false) << "Invalid callback";
27 } 27 }
28 28
29 virtual void OnReceivedReportBlock( 29 virtual void OnReceivedReportBlock(
30 const RtcpReportBlock& report_block) OVERRIDE { 30 const RtcpReportBlock& report_block) OVERRIDE {
31 DCHECK(false) << "Invalid callback"; 31 DCHECK(false) << "Invalid callback";
32 } 32 }
33 33
34 virtual void OnReceivedIntraFrameRequest() OVERRIDE { 34 virtual void OnReceivedIntraFrameRequest() OVERRIDE {
35 DCHECK(false) << "Invalid callback"; 35 DCHECK(false) << "Invalid callback";
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 time_to_next); 159 time_to_next);
160 } 160 }
161 161
162 void AudioSender::SendRtcpReport() { 162 void AudioSender::SendRtcpReport() {
163 rtcp_.SendRtcpReport(incoming_feedback_ssrc_); 163 rtcp_.SendRtcpReport(incoming_feedback_ssrc_);
164 ScheduleNextRtcpReport(); 164 ScheduleNextRtcpReport();
165 } 165 }
166 166
167 } // namespace cast 167 } // namespace cast
168 } // namespace media 168 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698