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

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

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes 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
« 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 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_NET_RTCP_RTCP_BUILDER_H_
6 #define MEDIA_CAST_TRANSPORT_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/transport/cast_transport_defines.h" 12 #include "media/cast/net/cast_transport_defines.h"
13 #include "media/cast/transport/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 namespace transport {
18 17
19 class RtcpBuilder { 18 class RtcpBuilder {
20 public: 19 public:
21 explicit RtcpBuilder(PacedSender* const paced_packet_sender); 20 explicit RtcpBuilder(PacedSender* const paced_packet_sender);
22 21
23 virtual ~RtcpBuilder(); 22 virtual ~RtcpBuilder();
24 23
25 void SendRtcpFromRtpSender(uint32 packet_type_flags, 24 void SendRtcpFromRtpSender(uint32 packet_type_flags,
26 const RtcpSenderInfo& sender_info, 25 const RtcpSenderInfo& sender_info,
27 const RtcpDlrrReportBlock& dlrr, 26 const RtcpDlrrReportBlock& dlrr,
28 uint32 ssrc, 27 uint32 ssrc,
29 const std::string& c_name); 28 const std::string& c_name);
30 29
31 private: 30 private:
32 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const; 31 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const;
33 bool BuildSdec(Packet* packet) const; 32 bool BuildSdec(Packet* packet) const;
34 bool BuildBye(Packet* packet) const; 33 bool BuildBye(Packet* packet) const;
35 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr, 34 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr,
36 Packet* packet) const; 35 Packet* packet) const;
37 36
38 PacedSender* const transport_; // Not owned by this class. 37 PacedSender* const transport_; // Not owned by this class.
39 uint32 ssrc_; 38 uint32 ssrc_;
40 std::string c_name_; 39 std::string c_name_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); 41 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder);
43 }; 42 };
44 43
45 } // namespace transport
46 } // namespace cast 44 } // namespace cast
47 } // namespace media 45 } // namespace media
48 46
49 #endif // MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ 47 #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