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

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

Issue 480563004: Cast: Reject old RTCP packets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | media/cast/net/rtcp/rtcp.cc » ('j') | media/cast/net/rtcp/rtcp.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This class maintains a bi-directional RTCP connection with a remote 5 // This class maintains a bi-directional RTCP connection with a remote
6 // peer. 6 // peer.
7 7
8 #ifndef MEDIA_CAST_RTCP_RTCP_H_ 8 #ifndef MEDIA_CAST_RTCP_RTCP_H_
9 #define MEDIA_CAST_RTCP_RTCP_H_ 9 #define MEDIA_CAST_RTCP_RTCP_H_
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // manner (e.g., about once per second). 164 // manner (e.g., about once per second).
165 uint32 lip_sync_rtp_timestamp_; 165 uint32 lip_sync_rtp_timestamp_;
166 uint64 lip_sync_ntp_timestamp_; 166 uint64 lip_sync_ntp_timestamp_;
167 167
168 base::TimeDelta rtt_; 168 base::TimeDelta rtt_;
169 base::TimeDelta min_rtt_; 169 base::TimeDelta min_rtt_;
170 base::TimeDelta max_rtt_; 170 base::TimeDelta max_rtt_;
171 int number_of_rtt_in_avg_; 171 int number_of_rtt_in_avg_;
172 base::TimeDelta avg_rtt_; 172 base::TimeDelta avg_rtt_;
173 173
174 base::TimeTicks largest_seen_timestamp_;
175
174 // For extending received ACK frame IDs from 8-bit to 32-bit. 176 // For extending received ACK frame IDs from 8-bit to 32-bit.
175 FrameIdWrapHelper ack_frame_id_wrap_helper_; 177 FrameIdWrapHelper ack_frame_id_wrap_helper_;
176 178
177 // Maintains a history of receiver events. 179 // Maintains a history of receiver events.
178 typedef std::pair<uint64, uint64> ReceiverEventKey; 180 typedef std::pair<uint64, uint64> ReceiverEventKey;
179 base::hash_set<ReceiverEventKey> receiver_event_key_set_; 181 base::hash_set<ReceiverEventKey> receiver_event_key_set_;
180 std::queue<ReceiverEventKey> receiver_event_key_queue_; 182 std::queue<ReceiverEventKey> receiver_event_key_queue_;
181 183
182 DISALLOW_COPY_AND_ASSIGN(Rtcp); 184 DISALLOW_COPY_AND_ASSIGN(Rtcp);
183 }; 185 };
184 186
185 } // namespace cast 187 } // namespace cast
186 } // namespace media 188 } // namespace media
187 189
188 #endif // MEDIA_CAST_RTCP_RTCP_H_ 190 #endif // MEDIA_CAST_RTCP_RTCP_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/net/rtcp/rtcp.cc » ('j') | media/cast/net/rtcp/rtcp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698