| 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_RTP_PACKET_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_H_ |
| 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_H_ |
| 12 | 12 |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "webrtc/base/basictypes.h" | 15 #include "webrtc/base/basictypes.h" |
| 16 #include "webrtc/base/buffer.h" | 16 #include "webrtc/base/buffer.h" |
| 17 #include "webrtc/base/constructormagic.h" |
| 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 18 | 19 |
| 19 namespace webrtc { | 20 namespace webrtc { |
| 20 struct RTPHeader; | 21 struct RTPHeader; |
| 21 class RtpHeaderExtensionMap; | 22 class RtpHeaderExtensionMap; |
| 22 class Random; | 23 class Random; |
| 23 | 24 |
| 24 namespace rtp { | 25 namespace rtp { |
| 25 class Packet { | 26 class Packet { |
| 26 public: | 27 public: |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 uint16_t offset = 0; | 178 uint16_t offset = 0; |
| 178 if (!AllocateExtension(Extension::kId, Extension::kValueSizeBytes, &offset)) | 179 if (!AllocateExtension(Extension::kId, Extension::kValueSizeBytes, &offset)) |
| 179 return false; | 180 return false; |
| 180 memset(WriteAt(offset), 0, Extension::kValueSizeBytes); | 181 memset(WriteAt(offset), 0, Extension::kValueSizeBytes); |
| 181 return true; | 182 return true; |
| 182 } | 183 } |
| 183 } // namespace rtp | 184 } // namespace rtp |
| 184 } // namespace webrtc | 185 } // namespace webrtc |
| 185 | 186 |
| 186 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_H_ | 187 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_H_ |
| OLD | NEW |