| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |