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

Side by Side Diff: webrtc/media/sctp/sctpdataengine.h

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 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
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 const rtc::PacketTime& packet_time); 156 const rtc::PacketTime& packet_time);
157 157
158 // Exposed to allow Post call from c-callbacks. 158 // Exposed to allow Post call from c-callbacks.
159 rtc::Thread* worker_thread() const { return worker_thread_; } 159 rtc::Thread* worker_thread() const { return worker_thread_; }
160 160
161 // Many of these things are unused by SCTP, but are needed to fulfill 161 // Many of these things are unused by SCTP, but are needed to fulfill
162 // the MediaChannel interface. 162 // the MediaChannel interface.
163 virtual void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 163 virtual void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
164 const rtc::PacketTime& packet_time) {} 164 const rtc::PacketTime& packet_time) {}
165 virtual void OnReadyToSend(bool ready) {} 165 virtual void OnReadyToSend(bool ready) {}
166 virtual void OnTransportOverheadChanged(int transport_overhead_per_packet) {}
166 167
167 void OnSendThresholdCallback(); 168 void OnSendThresholdCallback();
168 // Helper for debugging. 169 // Helper for debugging.
169 void set_debug_name_for_testing(const char* debug_name) { 170 void set_debug_name_for_testing(const char* debug_name) {
170 debug_name_ = debug_name; 171 debug_name_ = debug_name;
171 } 172 }
172 const struct socket* socket() const { return sock_; } 173 const struct socket* socket() const { return sock_; }
173 174
174 private: 175 private:
175 FRIEND_TEST_ALL_PREFIXES(SctpDataMediaChannelTest, EngineSignalsRightChannel); 176 FRIEND_TEST_ALL_PREFIXES(SctpDataMediaChannelTest, EngineSignalsRightChannel);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 StreamSet queued_reset_streams_; 240 StreamSet queued_reset_streams_;
240 StreamSet sent_reset_streams_; 241 StreamSet sent_reset_streams_;
241 242
242 // A static human-readable name for debugging messages. 243 // A static human-readable name for debugging messages.
243 const char* debug_name_; 244 const char* debug_name_;
244 }; 245 };
245 246
246 } // namespace cricket 247 } // namespace cricket
247 248
248 #endif // WEBRTC_MEDIA_SCTP_SCTPDATAENGINE_H_ 249 #endif // WEBRTC_MEDIA_SCTP_SCTPDATAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698