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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_sender.h

Issue 2368983002: Replace RtcpReceiveTimeInfo with rtcp::ReceiveTimeInfo (Closed)
Patch Set: Rebase Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <set> 16 #include <set>
17 #include <sstream> 17 #include <sstream>
18 #include <string> 18 #include <string>
19 #include <vector> 19 #include <vector>
20 20
21 #include "webrtc/base/constructormagic.h" 21 #include "webrtc/base/constructormagic.h"
22 #include "webrtc/base/criticalsection.h" 22 #include "webrtc/base/criticalsection.h"
23 #include "webrtc/base/random.h" 23 #include "webrtc/base/random.h"
24 #include "webrtc/base/thread_annotations.h" 24 #include "webrtc/base/thread_annotations.h"
25 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" 25 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h"
26 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h" 26 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
27 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 27 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
28 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 28 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" 29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr.h"
30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block.h" 31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block.h"
31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h" 32 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h"
32 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" 33 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
33 #include "webrtc/transport.h" 34 #include "webrtc/transport.h"
34 #include "webrtc/typedefs.h" 35 #include "webrtc/typedefs.h"
35 36
36 namespace webrtc { 37 namespace webrtc {
37 38
38 class ModuleRtpRtcpImpl; 39 class ModuleRtpRtcpImpl;
39 class RTCPReceiver; 40 class RTCPReceiver;
(...skipping 23 matching lines...) Expand all
63 uint32_t frequency_hz; 64 uint32_t frequency_hz;
64 uint32_t packets_sent; 65 uint32_t packets_sent;
65 size_t media_bytes_sent; 66 size_t media_bytes_sent;
66 uint32_t send_bitrate; 67 uint32_t send_bitrate;
67 68
68 uint32_t last_rr_ntp_secs; 69 uint32_t last_rr_ntp_secs;
69 uint32_t last_rr_ntp_frac; 70 uint32_t last_rr_ntp_frac;
70 uint32_t remote_sr; 71 uint32_t remote_sr;
71 72
72 bool has_last_xr_rr; 73 bool has_last_xr_rr;
73 RtcpReceiveTimeInfo last_xr_rr; 74 rtcp::ReceiveTimeInfo last_xr_rr;
74 75
75 // Used when generating TMMBR. 76 // Used when generating TMMBR.
76 ModuleRtpRtcpImpl* module; 77 ModuleRtpRtcpImpl* module;
77 }; 78 };
78 79
79 RTCPSender(bool audio, 80 RTCPSender(bool audio,
80 Clock* clock, 81 Clock* clock,
81 ReceiveStatistics* receive_statistics, 82 ReceiveStatistics* receive_statistics,
82 RtcpPacketTypeCounterObserver* packet_type_counter_observer, 83 RtcpPacketTypeCounterObserver* packet_type_counter_observer,
83 RtcEventLog* event_log, 84 RtcEventLog* event_log,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 289
289 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( 290 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)(
290 const RtcpContext&); 291 const RtcpContext&);
291 std::map<RTCPPacketType, BuilderFunc> builders_; 292 std::map<RTCPPacketType, BuilderFunc> builders_;
292 293
293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); 294 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender);
294 }; 295 };
295 } // namespace webrtc 296 } // namespace webrtc
296 297
297 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 298 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698