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

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

Issue 427733002: Cast: Remove unused RTCP messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 4 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
« no previous file with comments | « media/cast/net/rtcp/rtcp.cc ('k') | media/cast/net/rtcp/rtcp_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NET_RTCP_RTCP_BUILDER_H_ 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
6 #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ 6 #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "media/cast/net/cast_transport_defines.h" 12 #include "media/cast/net/cast_transport_defines.h"
13 #include "media/cast/net/pacing/paced_sender.h" 13 #include "media/cast/net/pacing/paced_sender.h"
14 14
15 namespace media { 15 namespace media {
16 namespace cast { 16 namespace cast {
17 17
18 class RtcpBuilder { 18 class RtcpBuilder {
19 public: 19 public:
20 explicit RtcpBuilder(PacedSender* const paced_packet_sender); 20 explicit RtcpBuilder(PacedSender* const paced_packet_sender);
21 21
22 virtual ~RtcpBuilder(); 22 virtual ~RtcpBuilder();
23 23
24 void SendRtcpFromRtpSender(uint32 packet_type_flags, 24 void SendRtcpFromRtpSender(uint32 packet_type_flags,
25 const RtcpSenderInfo& sender_info, 25 const RtcpSenderInfo& sender_info,
26 const RtcpDlrrReportBlock& dlrr, 26 const RtcpDlrrReportBlock& dlrr,
27 uint32 ssrc, 27 uint32 ssrc);
28 const std::string& c_name);
29 28
30 private: 29 private:
31 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const; 30 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const;
32 bool BuildSdec(Packet* packet) const;
33 bool BuildBye(Packet* packet) const;
34 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr, 31 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr,
35 Packet* packet) const; 32 Packet* packet) const;
36 33
37 PacedSender* const transport_; // Not owned by this class. 34 PacedSender* const transport_; // Not owned by this class.
38 uint32 ssrc_; 35 uint32 ssrc_;
39 std::string c_name_;
40 36
41 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); 37 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder);
42 }; 38 };
43 39
44 } // namespace cast 40 } // namespace cast
45 } // namespace media 41 } // namespace media
46 42
47 #endif // MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ 43 #endif // MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp.cc ('k') | media/cast/net/rtcp/rtcp_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698