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

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

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: smaller diff Created 6 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
6 #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
7
8 #include <list>
9 #include <string>
10 #include <vector>
11
12 #include "media/cast/net/cast_transport_defines.h"
13 #include "media/cast/net/pacing/paced_sender.h"
14
15 namespace media {
16 namespace cast {
17
18 class RtcpBuilder {
19 public:
20 explicit RtcpBuilder(PacedSender* const paced_packet_sender);
21
22 virtual ~RtcpBuilder();
23
24 void SendRtcpFromRtpSender(uint32 packet_type_flags,
25 const RtcpSenderInfo& sender_info,
26 const RtcpDlrrReportBlock& dlrr,
27 uint32 ssrc,
28 const std::string& c_name);
29
30 private:
31 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,
35 Packet* packet) const;
36
37 PacedSender* const transport_; // Not owned by this class.
38 uint32 ssrc_;
39 std::string c_name_;
40
41 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder);
42 };
43
44 } // namespace cast
45 } // namespace media
46
47 #endif // MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698