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

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

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files 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
78 private: 74 private:
79 AudioReceiver* audio_receiver_; 75 AudioReceiver* audio_receiver_;
80 }; 76 };
81 77
82 class LocalRtpReceiverStatistics : public RtpReceiverStatistics { 78 class LocalRtpReceiverStatistics : public RtpReceiverStatistics {
83 public: 79 public:
84 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver) 80 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver)
85 : rtp_receiver_(rtp_receiver) { 81 : rtp_receiver_(rtp_receiver) {
86 } 82 }
87 83
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 weak_factory_.GetWeakPtr()), time_to_send); 292 weak_factory_.GetWeakPtr()), time_to_send);
297 } 293 }
298 294
299 void AudioReceiver::SendNextRtcpReport() { 295 void AudioReceiver::SendNextRtcpReport() {
300 rtcp_->SendRtcpReport(incoming_ssrc_); 296 rtcp_->SendRtcpReport(incoming_ssrc_);
301 ScheduleNextRtcpReport(); 297 ScheduleNextRtcpReport();
302 } 298 }
303 299
304 } // namespace cast 300 } // namespace cast
305 } // namespace media 301 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/audio_receiver/audio_decoder_unittest.cc ('k') | media/cast/audio_receiver/audio_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698