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

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

Issue 1309833002: Send RTCP packets via RtcpPacket callback (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years 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_sender.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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 */
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 uint8_t* buffer, 109 uint8_t* buffer,
110 size_t* pos); 110 size_t* pos);
111 111
112 bool OnBufferFull(uint8_t* packet, 112 bool OnBufferFull(uint8_t* packet,
113 size_t* index, 113 size_t* index,
114 RtcpPacket::PacketReadyCallback* callback) const; 114 RtcpPacket::PacketReadyCallback* callback) const;
115 115
116 size_t HeaderLength() const; 116 size_t HeaderLength() const;
117 117
118 static const size_t kHeaderLength = 4; 118 static const size_t kHeaderLength = 4;
119 std::vector<RtcpPacket*> appended_packets_;
119 120
120 private: 121 private:
121 bool CreateAndAddAppended(uint8_t* packet, 122 bool CreateAndAddAppended(uint8_t* packet,
122 size_t* index, 123 size_t* index,
123 size_t max_length, 124 size_t max_length,
124 PacketReadyCallback* callback) const; 125 PacketReadyCallback* callback) const;
125
126 std::vector<RtcpPacket*> appended_packets_;
127 }; 126 };
128 127
129 // TODO(sprang): Move RtcpPacket subclasses out to separate files. 128 // TODO(sprang): Move RtcpPacket subclasses out to separate files.
130 129
131 class Empty : public RtcpPacket { 130 class Empty : public RtcpPacket {
132 public: 131 public:
133 Empty() : RtcpPacket() {} 132 Empty() : RtcpPacket() {}
134 133
135 virtual ~Empty() {} 134 virtual ~Empty() {}
136 135
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 895
897 private: 896 private:
898 const size_t buffer_length_; 897 const size_t buffer_length_;
899 size_t length_; 898 size_t length_;
900 rtc::scoped_ptr<uint8_t[]> buffer_; 899 rtc::scoped_ptr<uint8_t[]> buffer_;
901 }; 900 };
902 901
903 } // namespace rtcp 902 } // namespace rtcp
904 } // namespace webrtc 903 } // namespace webrtc
905 #endif // WEBRTC_MODULES_RTP_RTCP_RTCP_PACKET_H_ 904 #endif // WEBRTC_MODULES_RTP_RTCP_RTCP_PACKET_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698