Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h

Issue 2675713005: Make rtcp packets copyable (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_
13 13
14 #include "webrtc/base/buffer.h" 14 #include "webrtc/base/buffer.h"
15 #include "webrtc/base/constructormagic.h"
16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" 15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
17 16
18 namespace webrtc { 17 namespace webrtc {
19 namespace rtcp { 18 namespace rtcp {
20 class CommonHeader; 19 class CommonHeader;
21 20
22 class App : public RtcpPacket { 21 class App : public RtcpPacket {
23 public: 22 public:
24 static constexpr uint8_t kPacketType = 204; 23 static constexpr uint8_t kPacketType = 204;
25 App() : sub_type_(0), ssrc_(0), name_(0) {} 24 App() : sub_type_(0), ssrc_(0), name_(0) {}
(...skipping 23 matching lines...) Expand all
49 static constexpr size_t kAppBaseLength = 8; // Ssrc and Name. 48 static constexpr size_t kAppBaseLength = 8; // Ssrc and Name.
50 static constexpr size_t kMaxDataSize = 0xffff * 4 - kAppBaseLength; 49 static constexpr size_t kMaxDataSize = 0xffff * 4 - kAppBaseLength;
51 size_t BlockLength() const override { 50 size_t BlockLength() const override {
52 return kHeaderLength + kAppBaseLength + data_.size(); 51 return kHeaderLength + kAppBaseLength + data_.size();
53 } 52 }
54 53
55 uint8_t sub_type_; 54 uint8_t sub_type_;
56 uint32_t ssrc_; 55 uint32_t ssrc_;
57 uint32_t name_; 56 uint32_t name_;
58 rtc::Buffer data_; 57 rtc::Buffer data_;
59
60 RTC_DISALLOW_COPY_AND_ASSIGN(App);
61 }; 58 };
62 59
63 } // namespace rtcp 60 } // namespace rtcp
64 } // namespace webrtc 61 } // namespace webrtc
65 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_ 62 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_APP_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698