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

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: Adding scoped_ptr include 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
« no previous file with comments | « media/cast/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 virtual void OnReceivedDelaySinceLastReport( 36 virtual void OnReceivedDelaySinceLastReport(
37 uint32 receivers_ssrc, 37 uint32 receivers_ssrc,
38 uint32 last_report, 38 uint32 last_report,
39 uint32 delay_since_last_report) = 0; 39 uint32 delay_since_last_report) = 0;
40 40
41 virtual ~RtcpRttFeedback() {} 41 virtual ~RtcpRttFeedback() {}
42 }; 42 };
43 43
44 class RtcpReceiver { 44 class RtcpReceiver {
45 public: 45 public:
46 explicit RtcpReceiver(RtcpSenderFeedback* sender_feedback, 46 explicit RtcpReceiver(scoped_refptr<CastEnvironment> cast_environment,
47 RtcpSenderFeedback* sender_feedback,
47 RtcpReceiverFeedback* receiver_feedback, 48 RtcpReceiverFeedback* receiver_feedback,
48 RtcpRttFeedback* rtt_feedback, 49 RtcpRttFeedback* rtt_feedback,
49 uint32 local_ssrc); 50 uint32 local_ssrc);
50 virtual ~RtcpReceiver(); 51 virtual ~RtcpReceiver();
51 52
52 void SetRemoteSSRC(uint32 ssrc); 53 void SetRemoteSSRC(uint32 ssrc);
53 54
54 void IncomingRtcpPacket(RtcpParser* rtcp_parser); 55 void IncomingRtcpPacket(RtcpParser* rtcp_parser);
55 56
56 private: 57 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const RtcpField* rtcp_field, 96 const RtcpField* rtcp_field,
96 MissingFramesAndPacketsMap* missing_frames_and_packets); 97 MissingFramesAndPacketsMap* missing_frames_and_packets);
97 98
98 const uint32 ssrc_; 99 const uint32 ssrc_;
99 uint32 remote_ssrc_; 100 uint32 remote_ssrc_;
100 101
101 // Not owned by this class. 102 // Not owned by this class.
102 RtcpSenderFeedback* const sender_feedback_; 103 RtcpSenderFeedback* const sender_feedback_;
103 RtcpReceiverFeedback* const receiver_feedback_; 104 RtcpReceiverFeedback* const receiver_feedback_;
104 RtcpRttFeedback* const rtt_feedback_; 105 RtcpRttFeedback* const rtt_feedback_;
106 scoped_refptr<CastEnvironment> cast_environment_;
105 107
106 FrameIdWrapHelper ack_frame_id_wrap_helper_; 108 FrameIdWrapHelper ack_frame_id_wrap_helper_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); 110 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver);
109 }; 111 };
110 112
111 } // namespace cast 113 } // namespace cast
112 } // namespace media 114 } // namespace media
113 115
114 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 116 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698