OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ | 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ |
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ | 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ |
13 | 13 |
14 #include "webrtc/logging/rtc_event_log/events/rtc_event.h" | 14 #include "webrtc/logging/rtc_event_log/events/rtc_event.h" |
| 15 #include "webrtc/modules/rtp_rtcp/source/rtp_packet.h" |
15 | 16 |
16 namespace webrtc { | 17 namespace webrtc { |
17 | 18 |
| 19 class RtpPacketToSend; |
| 20 |
18 class RtcEventRtpPacketOutgoing final : public RtcEvent { | 21 class RtcEventRtpPacketOutgoing final : public RtcEvent { |
19 public: | 22 public: |
20 ~RtcEventRtpPacketOutgoing() override = default; | 23 RtcEventRtpPacketOutgoing(const RtpPacketToSend& packet, |
| 24 int probe_cluster_id); |
| 25 ~RtcEventRtpPacketOutgoing() override; |
21 | 26 |
22 Type GetType() const override; | 27 Type GetType() const override; |
23 | 28 |
24 bool IsConfigEvent() const override; | 29 bool IsConfigEvent() const override; |
| 30 |
| 31 rtp::Packet header_; // Only the packet's header will be stored here. |
| 32 const size_t packet_length_; // Length before stripping away all but header. |
| 33 const int probe_cluster_id_; |
25 }; | 34 }; |
26 | 35 |
27 } // namespace webrtc | 36 } // namespace webrtc |
28 | 37 |
29 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ | 38 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTP_PACKET_OUTGOING_H_ |
OLD | NEW |