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

Side by Side Diff: media/cast/transport/rtcp/rtcp_builder.h

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_
6 #define MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ 6 #define MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 22
23 virtual ~RtcpBuilder(); 23 virtual ~RtcpBuilder();
24 24
25 void SendRtcpFromRtpSender(uint32 packet_type_flags, 25 void SendRtcpFromRtpSender(uint32 packet_type_flags,
26 const RtcpSenderInfo& sender_info, 26 const RtcpSenderInfo& sender_info,
27 const RtcpDlrrReportBlock& dlrr, 27 const RtcpDlrrReportBlock& dlrr,
28 const RtcpSenderLogMessage& sender_log, 28 const RtcpSenderLogMessage& sender_log,
29 uint32 ssrc, 29 uint32 ssrc,
30 const std::string& c_name); 30 const std::string& c_name);
31 31
32 enum RtcpPacketType {
33 kRtcpSr = 0x0002,
34 kRtcpRr = 0x0004,
35 kRtcpBye = 0x0008,
36 kRtcpPli = 0x0010,
37 kRtcpNack = 0x0020,
38 kRtcpFir = 0x0040,
39 kRtcpSrReq = 0x0200,
40 kRtcpDlrr = 0x0400,
41 kRtcpRrtr = 0x0800,
42 kRtcpRpsi = 0x8000,
43 kRtcpRemb = 0x10000,
44 kRtcpCast = 0x20000,
45 kRtcpSenderLog = 0x40000,
46 kRtcpReceiverLog = 0x80000,
47 };
48
49 private: 32 private:
50 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const; 33 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const;
51 bool BuildSdec(Packet* packet) const; 34 bool BuildSdec(Packet* packet) const;
52 bool BuildBye(Packet* packet) const; 35 bool BuildBye(Packet* packet) const;
53 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr, 36 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr,
54 Packet* packet) const; 37 Packet* packet) const;
55 bool BuildSenderLog(const RtcpSenderLogMessage& sender_log_message, 38 bool BuildSenderLog(const RtcpSenderLogMessage& sender_log_message,
56 Packet* packet) const; 39 Packet* packet) const;
57 40
58 PacedSender* const transport_; // Not owned by this class. 41 PacedSender* const transport_; // Not owned by this class.
59 uint32 ssrc_; 42 uint32 ssrc_;
60 std::string c_name_; 43 std::string c_name_;
61 44
62 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); 45 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder);
63 }; 46 };
64 47
65 } // namespace transport 48 } // namespace transport
66 } // namespace cast 49 } // namespace cast
67 } // namespace media 50 } // namespace media
68 51
69 #endif // MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ 52 #endif // MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/cast_transport_defines.h ('k') | media/cast/video_receiver/video_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698