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

Side by Side Diff: media/cast/rtcp/rtcp_sender.h

Issue 69603002: Incorporating logging into Cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding scoped_ptr include Created 7 years, 1 month 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/rtcp/rtcp_receiver_unittest.cc ('k') | media/cast/rtcp/rtcp_sender.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_RTCP_RTCP_SENDER_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_SENDER_H_
6 #define MEDIA_CAST_RTCP_RTCP_SENDER_H_ 6 #define MEDIA_CAST_RTCP_RTCP_SENDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "media/cast/cast_config.h" 11 #include "media/cast/cast_config.h"
12 #include "media/cast/cast_defines.h" 12 #include "media/cast/cast_defines.h"
13 #include "media/cast/rtcp/rtcp.h" 13 #include "media/cast/rtcp/rtcp.h"
14 #include "media/cast/rtcp/rtcp_defines.h" 14 #include "media/cast/rtcp/rtcp_defines.h"
15 15
16 namespace media { 16 namespace media {
17 namespace cast { 17 namespace cast {
18 18
19 class RtcpSender { 19 class RtcpSender {
20 public: 20 public:
21 RtcpSender(PacedPacketSender* const paced_packet_sender, 21 RtcpSender(scoped_refptr<CastEnvironment> cast_environment,
22 PacedPacketSender* const paced_packet_sender,
22 uint32 sending_ssrc, 23 uint32 sending_ssrc,
23 const std::string& c_name); 24 const std::string& c_name);
24 25
25 virtual ~RtcpSender(); 26 virtual ~RtcpSender();
26 27
27 void SendRtcpFromRtpSender(uint32 packet_type_flags, 28 void SendRtcpFromRtpSender(uint32 packet_type_flags,
28 const RtcpSenderInfo* sender_info, 29 const RtcpSenderInfo* sender_info,
29 const RtcpDlrrReportBlock* dlrr, 30 const RtcpDlrrReportBlock* dlrr,
30 const RtcpSenderLogMessage* sender_log); 31 const RtcpSenderLogMessage* sender_log);
31 32
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 107 }
107 } 108 }
108 *mantissa = (bitrate >> *exponent); 109 *mantissa = (bitrate >> *exponent);
109 } 110 }
110 111
111 const uint32 ssrc_; 112 const uint32 ssrc_;
112 const std::string c_name_; 113 const std::string c_name_;
113 114
114 // Not owned by this class. 115 // Not owned by this class.
115 PacedPacketSender* transport_; 116 PacedPacketSender* transport_;
117 scoped_refptr<CastEnvironment> cast_environment_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(RtcpSender); 119 DISALLOW_COPY_AND_ASSIGN(RtcpSender);
118 }; 120 };
119 121
120 } // namespace cast 122 } // namespace cast
121 } // namespace media 123 } // namespace media
122 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ 124 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_receiver_unittest.cc ('k') | media/cast/rtcp/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698