1 /*
2  *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTCP_PACKET_OUTGOING_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTCP_PACKET_OUTGOING_H_
13 
14 #include <stdint.h>
15 
16 #include <memory>
17 
18 #include "api/array_view.h"
19 #include "api/rtc_event_log/rtc_event.h"
20 #include "rtc_base/buffer.h"
21 
22 namespace webrtc {
23 
24 class RtcEventRtcpPacketOutgoing final : public RtcEvent {
25  public:
26   explicit RtcEventRtcpPacketOutgoing(rtc::ArrayView<const uint8_t> packet);
27   ~RtcEventRtcpPacketOutgoing() override;
28 
29   Type GetType() const override;
30 
31   bool IsConfigEvent() const override;
32 
33   std::unique_ptr<RtcEventRtcpPacketOutgoing> Copy() const;
34 
packet()35   const rtc::Buffer& packet() const { return packet_; }
36 
37  private:
38   RtcEventRtcpPacketOutgoing(const RtcEventRtcpPacketOutgoing& other);
39 
40   rtc::Buffer packet_;
41 };
42 
43 }  // namespace webrtc
44 
45 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_RTCP_PACKET_OUTGOING_H_
46