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

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

Issue 266373008: Cast: Fix rtcp event dedup logic in rtcp_receiver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 7 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/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 <queue> 8 #include <queue>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Not owned by this class. 116 // Not owned by this class.
117 RtcpSenderFeedback* const sender_feedback_; 117 RtcpSenderFeedback* const sender_feedback_;
118 RtcpReceiverFeedback* const receiver_feedback_; 118 RtcpReceiverFeedback* const receiver_feedback_;
119 RtcpRttFeedback* const rtt_feedback_; 119 RtcpRttFeedback* const rtt_feedback_;
120 scoped_refptr<CastEnvironment> cast_environment_; 120 scoped_refptr<CastEnvironment> cast_environment_;
121 121
122 transport::FrameIdWrapHelper ack_frame_id_wrap_helper_; 122 transport::FrameIdWrapHelper ack_frame_id_wrap_helper_;
123 123
124 // Maintains a history of receiver events. 124 // Maintains a history of receiver events.
125 size_t receiver_event_history_size_; 125 size_t receiver_event_history_size_;
126 base::hash_set<size_t> receiver_event_hash_set_; 126 typedef std::pair<uint64, uint64> ReceiverEventKey;
127 std::queue<size_t> receiver_event_hash_queue_; 127 base::hash_set<ReceiverEventKey> receiver_event_key_set_;
128 std::queue<ReceiverEventKey> receiver_event_key_queue_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); 130 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver);
130 }; 131 };
131 132
132 } // namespace cast 133 } // namespace cast
133 } // namespace media 134 } // namespace media
134 135
135 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ 136 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/rtcp/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698