| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_CALL_H_ | 10 #ifndef WEBRTC_CALL_CALL_H_ |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 105 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 106 rtc::scoped_refptr<AudioState> audio_state; | 106 rtc::scoped_refptr<AudioState> audio_state; |
| 107 | 107 |
| 108 // Audio Processing Module to be used in this call. | 108 // Audio Processing Module to be used in this call. |
| 109 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 109 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 110 AudioProcessing* audio_processing = nullptr; | 110 AudioProcessing* audio_processing = nullptr; |
| 111 | 111 |
| 112 // RtcEventLog to use for this call. Required. | 112 // RtcEventLog to use for this call. Required. |
| 113 // Use webrtc::RtcEventLog::CreateNull() for a null implementation. | 113 // Use webrtc::RtcEventLog::CreateNull() for a null implementation. |
| 114 RtcEventLog* event_log = nullptr; | 114 RtcEventLog* event_log = nullptr; |
| 115 |
| 116 // Enables periodic sending if empty keep-alive messages that helps prevent |
| 117 // network time-out events. The packets adhere to RFC6263 section 4.6, and |
| 118 // by default use payload type 20, as described in 3GPP TS 24.229, |
| 119 // Appendix K.5.2.1. |
| 120 RtpKeepAliveConfig keepalive_config; |
| 115 }; | 121 }; |
| 116 | 122 |
| 117 struct Stats { | 123 struct Stats { |
| 118 std::string ToString(int64_t time_ms) const; | 124 std::string ToString(int64_t time_ms) const; |
| 119 | 125 |
| 120 int send_bandwidth_bps = 0; // Estimated available send bandwidth. | 126 int send_bandwidth_bps = 0; // Estimated available send bandwidth. |
| 121 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. | 127 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. |
| 122 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. | 128 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. |
| 123 int64_t pacer_delay_ms = 0; | 129 int64_t pacer_delay_ms = 0; |
| 124 int64_t rtt_ms = -1; | 130 int64_t rtt_ms = -1; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 const rtc::NetworkRoute& network_route) = 0; | 204 const rtc::NetworkRoute& network_route) = 0; |
| 199 | 205 |
| 200 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 206 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
| 201 | 207 |
| 202 virtual ~Call() {} | 208 virtual ~Call() {} |
| 203 }; | 209 }; |
| 204 | 210 |
| 205 } // namespace webrtc | 211 } // namespace webrtc |
| 206 | 212 |
| 207 #endif // WEBRTC_CALL_CALL_H_ | 213 #endif // WEBRTC_CALL_CALL_H_ |
| OLD | NEW |