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

Side by Side Diff: trunk/src/media/cast/audio_receiver/audio_receiver.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_receiver/audio_receiver.h" 5 #include "media/cast/audio_receiver/audio_receiver.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_receiver/audio_decoder.h" 10 #include "media/cast/audio_receiver/audio_decoder.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class LocalRtpAudioFeedback : public RtpPayloadFeedback { 64 class LocalRtpAudioFeedback : public RtpPayloadFeedback {
65 public: 65 public:
66 explicit LocalRtpAudioFeedback(AudioReceiver* audio_receiver) 66 explicit LocalRtpAudioFeedback(AudioReceiver* audio_receiver)
67 : audio_receiver_(audio_receiver) { 67 : audio_receiver_(audio_receiver) {
68 } 68 }
69 69
70 virtual void CastFeedback(const RtcpCastMessage& cast_message) OVERRIDE { 70 virtual void CastFeedback(const RtcpCastMessage& cast_message) OVERRIDE {
71 audio_receiver_->CastFeedback(cast_message); 71 audio_receiver_->CastFeedback(cast_message);
72 } 72 }
73 73
74 virtual void RequestKeyFrame() OVERRIDE {
75 DCHECK(false) << "Invalid callback";
76 }
77
74 private: 78 private:
75 AudioReceiver* audio_receiver_; 79 AudioReceiver* audio_receiver_;
76 }; 80 };
77 81
78 class LocalRtpReceiverStatistics : public RtpReceiverStatistics { 82 class LocalRtpReceiverStatistics : public RtpReceiverStatistics {
79 public: 83 public:
80 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver) 84 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver)
81 : rtp_receiver_(rtp_receiver) { 85 : rtp_receiver_(rtp_receiver) {
82 } 86 }
83 87
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 weak_factory_.GetWeakPtr()), time_to_send); 296 weak_factory_.GetWeakPtr()), time_to_send);
293 } 297 }
294 298
295 void AudioReceiver::SendNextRtcpReport() { 299 void AudioReceiver::SendNextRtcpReport() {
296 rtcp_->SendRtcpReport(incoming_ssrc_); 300 rtcp_->SendRtcpReport(incoming_ssrc_);
297 ScheduleNextRtcpReport(); 301 ScheduleNextRtcpReport();
298 } 302 }
299 303
300 } // namespace cast 304 } // namespace cast
301 } // namespace media 305 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698