| OLD | NEW |
| 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 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" | 5 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 namespace cast { | 10 namespace cast { |
| 11 | 11 |
| 12 ReceiverRtcpEventSubscriber::ReceiverRtcpEventSubscriber( | 12 ReceiverRtcpEventSubscriber::ReceiverRtcpEventSubscriber( |
| 13 const size_t max_size_to_retain, EventMediaType type) | 13 const size_t max_size_to_retain, EventMediaType type) |
| 14 : max_size_to_retain_(max_size_to_retain), type_(type) { | 14 : max_size_to_retain_(max_size_to_retain), type_(type) { |
| 15 DCHECK(max_size_to_retain_ > 0u); | 15 DCHECK(max_size_to_retain_ > 0u); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 bool ReceiverRtcpEventSubscriber::ShouldProcessEvent( | 88 bool ReceiverRtcpEventSubscriber::ShouldProcessEvent( |
| 89 CastLoggingEvent event_type, EventMediaType event_media_type) { | 89 CastLoggingEvent event_type, EventMediaType event_media_type) { |
| 90 return type_ == event_media_type && | 90 return type_ == event_media_type && |
| 91 (event_type == FRAME_ACK_SENT || event_type == FRAME_DECODED || | 91 (event_type == FRAME_ACK_SENT || event_type == FRAME_DECODED || |
| 92 event_type == FRAME_PLAYOUT || event_type == PACKET_RECEIVED); | 92 event_type == FRAME_PLAYOUT || event_type == PACKET_RECEIVED); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace cast | 95 } // namespace cast |
| 96 } // namespace media | 96 } // namespace media |
| OLD | NEW |