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

Side by Side Diff: media/cast/rtcp/rtcp_receiver.h

Issue 69603002: Incorporating logging into Cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing errors Created 7 years, 1 month 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 #ifndef MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
7 7
8 #include "media/cast/rtcp/rtcp.h" 8 #include "media/cast/rtcp/rtcp.h"
9 #include "media/cast/rtcp/rtcp_defines.h" 9 #include "media/cast/rtcp/rtcp_defines.h"
10 #include "media/cast/rtcp/rtcp_utility.h" 10 #include "media/cast/rtcp/rtcp_utility.h"
(...skipping 19 matching lines...) Expand all
30 virtual void OnReceivedDelaySinceLastReport( 30 virtual void OnReceivedDelaySinceLastReport(
31 uint32 receivers_ssrc, 31 uint32 receivers_ssrc,
32 uint32 last_report, 32 uint32 last_report,
33 uint32 delay_since_last_report) = 0; 33 uint32 delay_since_last_report) = 0;
34 34
35 virtual ~RtcpRttFeedback() {} 35 virtual ~RtcpRttFeedback() {}
36 }; 36 };
37 37
38 class RtcpReceiver { 38 class RtcpReceiver {
39 public: 39 public:
40 explicit RtcpReceiver(RtcpSenderFeedback* sender_feedback, 40 explicit RtcpReceiver(scoped_refptr<CastEnvironment> cast_environment,
41 RtcpSenderFeedback* sender_feedback,
41 RtcpReceiverFeedback* receiver_feedback, 42 RtcpReceiverFeedback* receiver_feedback,
42 RtcpRttFeedback* rtt_feedback, 43 RtcpRttFeedback* rtt_feedback,
43 uint32 local_ssrc); 44 uint32 local_ssrc);
44 virtual ~RtcpReceiver(); 45 virtual ~RtcpReceiver();
45 46
46 void SetRemoteSSRC(uint32 ssrc); 47 void SetRemoteSSRC(uint32 ssrc);
47 48
48 void IncomingRtcpPacket(RtcpParser* rtcp_parser); 49 void IncomingRtcpPacket(RtcpParser* rtcp_parser);
49 50
50 private: 51 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const RtcpField* rtcp_field, 90 const RtcpField* rtcp_field,
90 MissingFramesAndPacketsMap* missing_frames_and_packets); 91 MissingFramesAndPacketsMap* missing_frames_and_packets);
91 92
92 const uint32 ssrc_; 93 const uint32 ssrc_;
93 uint32 remote_ssrc_; 94 uint32 remote_ssrc_;
94 95
95 // Not owned by this class. 96 // Not owned by this class.
96 RtcpSenderFeedback* const sender_feedback_; 97 RtcpSenderFeedback* const sender_feedback_;
97 RtcpReceiverFeedback* const receiver_feedback_; 98 RtcpReceiverFeedback* const receiver_feedback_;
98 RtcpRttFeedback* const rtt_feedback_; 99 RtcpRttFeedback* const rtt_feedback_;
100 scoped_refptr<CastEnvironment> cast_environment_;
99 101
100 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); 102 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver);
101 }; 103 };
102 104
103 } // namespace cast 105 } // namespace cast
104 } // namespace media 106 } // namespace media
105 107
106 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 108 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698