| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ |
| 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ |
| 12 | 12 |
| 13 #include "webrtc/base/basictypes.h" | 13 #include "webrtc/rtc_base/basictypes.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 namespace rtcp { | 16 namespace rtcp { |
| 17 class CommonHeader { | 17 class CommonHeader { |
| 18 public: | 18 public: |
| 19 CommonHeader() {} | 19 CommonHeader() {} |
| 20 CommonHeader(const CommonHeader&) = default; | 20 CommonHeader(const CommonHeader&) = default; |
| 21 CommonHeader& operator =(const CommonHeader&) = default; | 21 CommonHeader& operator =(const CommonHeader&) = default; |
| 22 | 22 |
| 23 bool Parse(const uint8_t* buffer, size_t size_bytes); | 23 bool Parse(const uint8_t* buffer, size_t size_bytes); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 37 private: | 37 private: |
| 38 uint8_t packet_type_ = 0; | 38 uint8_t packet_type_ = 0; |
| 39 uint8_t count_or_format_ = 0; | 39 uint8_t count_or_format_ = 0; |
| 40 uint8_t padding_size_ = 0; | 40 uint8_t padding_size_ = 0; |
| 41 uint32_t payload_size_ = 0; | 41 uint32_t payload_size_ = 0; |
| 42 const uint8_t* payload_ = nullptr; | 42 const uint8_t* payload_ = nullptr; |
| 43 }; | 43 }; |
| 44 } // namespace rtcp | 44 } // namespace rtcp |
| 45 } // namespace webrtc | 45 } // namespace webrtc |
| 46 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ | 46 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMMON_HEADER_H_ |
| OLD | NEW |