OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |