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. | |
pbos-webrtc
2017/07/10 22:40:23
Is there a RFC you can point to here?
sprang_webrtc
2017/07/11 08:39:58
Done.
| |
118 RtpKeepAliveConfig keepalive_config; | |
115 }; | 119 }; |
116 | 120 |
117 struct Stats { | 121 struct Stats { |
118 std::string ToString(int64_t time_ms) const; | 122 std::string ToString(int64_t time_ms) const; |
119 | 123 |
120 int send_bandwidth_bps = 0; // Estimated available send bandwidth. | 124 int send_bandwidth_bps = 0; // Estimated available send bandwidth. |
121 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. | 125 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. |
122 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. | 126 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. |
123 int64_t pacer_delay_ms = 0; | 127 int64_t pacer_delay_ms = 0; |
124 int64_t rtt_ms = -1; | 128 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; | 202 const rtc::NetworkRoute& network_route) = 0; |
199 | 203 |
200 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 204 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
201 | 205 |
202 virtual ~Call() {} | 206 virtual ~Call() {} |
203 }; | 207 }; |
204 | 208 |
205 } // namespace webrtc | 209 } // namespace webrtc |
206 | 210 |
207 #endif // WEBRTC_CALL_CALL_H_ | 211 #endif // WEBRTC_CALL_CALL_H_ |
OLD | NEW |