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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc

Issue 1335353005: Remove channel ids from various interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" 11 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h"
12 12
13 #include <string.h> 13 #include <string.h>
14 14
15 #include <set> 15 #include <set>
16 16
17 #include "webrtc/base/checks.h" 17 #include "webrtc/base/checks.h"
18 #include "webrtc/common_types.h" 18 #include "webrtc/common_types.h"
19 #include "webrtc/system_wrappers/interface/logging.h" 19 #include "webrtc/system_wrappers/interface/logging.h"
20 #include "webrtc/system_wrappers/interface/trace.h" 20 #include "webrtc/system_wrappers/interface/trace.h"
21 21
22 #ifdef _WIN32 22 #ifdef _WIN32
23 // Disable warning C4355: 'this' : used in base member initializer list. 23 // Disable warning C4355: 'this' : used in base member initializer list.
24 #pragma warning(disable : 4355) 24 #pragma warning(disable : 4355)
25 #endif 25 #endif
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 RtpRtcp::Configuration::Configuration() 29 RtpRtcp::Configuration::Configuration()
30 : id(-1), 30 : audio(false),
31 audio(false),
32 receiver_only(false), 31 receiver_only(false),
33 clock(nullptr), 32 clock(nullptr),
34 receive_statistics(NullObjectReceiveStatistics()), 33 receive_statistics(NullObjectReceiveStatistics()),
35 outgoing_transport(nullptr), 34 outgoing_transport(nullptr),
36 intra_frame_callback(nullptr), 35 intra_frame_callback(nullptr),
37 bandwidth_callback(nullptr), 36 bandwidth_callback(nullptr),
38 transport_feedback_callback(nullptr), 37 transport_feedback_callback(nullptr),
39 rtt_stats(nullptr), 38 rtt_stats(nullptr),
40 rtcp_packet_type_counter_observer(nullptr), 39 rtcp_packet_type_counter_observer(nullptr),
41 audio_messages(NullObjectRtpAudioFeedback()), 40 audio_messages(NullObjectRtpAudioFeedback()),
(...skipping 11 matching lines...) Expand all
53 // No clock implementation provided, use default clock. 52 // No clock implementation provided, use default clock.
54 RtpRtcp::Configuration configuration_copy; 53 RtpRtcp::Configuration configuration_copy;
55 memcpy(&configuration_copy, &configuration, 54 memcpy(&configuration_copy, &configuration,
56 sizeof(RtpRtcp::Configuration)); 55 sizeof(RtpRtcp::Configuration));
57 configuration_copy.clock = Clock::GetRealTimeClock(); 56 configuration_copy.clock = Clock::GetRealTimeClock();
58 return new ModuleRtpRtcpImpl(configuration_copy); 57 return new ModuleRtpRtcpImpl(configuration_copy);
59 } 58 }
60 } 59 }
61 60
62 ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration) 61 ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration)
63 : rtp_sender_(configuration.id, 62 : rtp_sender_(configuration.audio,
64 configuration.audio,
65 configuration.clock, 63 configuration.clock,
66 configuration.outgoing_transport, 64 configuration.outgoing_transport,
67 configuration.audio_messages, 65 configuration.audio_messages,
68 configuration.paced_sender, 66 configuration.paced_sender,
69 configuration.packet_router, 67 configuration.packet_router,
70 configuration.transport_feedback_callback, 68 configuration.transport_feedback_callback,
71 configuration.send_bitrate_observer, 69 configuration.send_bitrate_observer,
72 configuration.send_frame_count_observer, 70 configuration.send_frame_count_observer,
73 configuration.send_side_delay_observer), 71 configuration.send_side_delay_observer),
74 rtcp_sender_(configuration.id, 72 rtcp_sender_(configuration.audio,
75 configuration.audio,
76 configuration.clock, 73 configuration.clock,
77 configuration.receive_statistics, 74 configuration.receive_statistics,
78 configuration.rtcp_packet_type_counter_observer), 75 configuration.rtcp_packet_type_counter_observer),
79 rtcp_receiver_(configuration.id, 76 rtcp_receiver_(configuration.clock,
80 configuration.clock,
81 configuration.receiver_only, 77 configuration.receiver_only,
82 configuration.rtcp_packet_type_counter_observer, 78 configuration.rtcp_packet_type_counter_observer,
83 configuration.bandwidth_callback, 79 configuration.bandwidth_callback,
84 configuration.intra_frame_callback, 80 configuration.intra_frame_callback,
85 this), 81 this),
86 clock_(configuration.clock), 82 clock_(configuration.clock),
87 id_(configuration.id),
88 audio_(configuration.audio), 83 audio_(configuration.audio),
89 collision_detected_(false), 84 collision_detected_(false),
90 last_process_time_(configuration.clock->TimeInMilliseconds()), 85 last_process_time_(configuration.clock->TimeInMilliseconds()),
91 last_bitrate_process_time_(configuration.clock->TimeInMilliseconds()), 86 last_bitrate_process_time_(configuration.clock->TimeInMilliseconds()),
92 last_rtt_process_time_(configuration.clock->TimeInMilliseconds()), 87 last_rtt_process_time_(configuration.clock->TimeInMilliseconds()),
93 packet_overhead_(28), // IPV4 UDP. 88 packet_overhead_(28), // IPV4 UDP.
94 padding_index_(static_cast<size_t>(-1)), // Start padding at first child. 89 padding_index_(static_cast<size_t>(-1)), // Start padding at first child.
95 nack_method_(kNackOff), 90 nack_method_(kNackOff),
96 nack_last_time_sent_full_(0), 91 nack_last_time_sent_full_(0),
97 nack_last_time_sent_full_prev_(0), 92 nack_last_time_sent_full_prev_(0),
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( 988 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback(
994 StreamDataCountersCallback* callback) { 989 StreamDataCountersCallback* callback) {
995 rtp_sender_.RegisterRtpStatisticsCallback(callback); 990 rtp_sender_.RegisterRtpStatisticsCallback(callback);
996 } 991 }
997 992
998 StreamDataCountersCallback* 993 StreamDataCountersCallback*
999 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { 994 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const {
1000 return rtp_sender_.GetRtpStatisticsCallback(); 995 return rtp_sender_.GetRtpStatisticsCallback();
1001 } 996 }
1002 } // namespace webrtc 997 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698