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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Issue 2005313003: Propagate probing cluster id to SendTimeHistory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 }; 244 };
245 245
246 struct PacketInfo { 246 struct PacketInfo {
247 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number) 247 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number)
248 : PacketInfo(-1, arrival_time_ms, -1, sequence_number, 0, false) {} 248 : PacketInfo(-1, arrival_time_ms, -1, sequence_number, 0, false) {}
249 249
250 PacketInfo(int64_t arrival_time_ms, 250 PacketInfo(int64_t arrival_time_ms,
251 int64_t send_time_ms, 251 int64_t send_time_ms,
252 uint16_t sequence_number, 252 uint16_t sequence_number,
253 size_t payload_size, 253 size_t payload_size,
254 bool was_paced) 254 int probe_cluster_id)
255 : PacketInfo(-1, 255 : PacketInfo(-1,
256 arrival_time_ms, 256 arrival_time_ms,
257 send_time_ms, 257 send_time_ms,
258 sequence_number, 258 sequence_number,
259 payload_size, 259 payload_size,
260 was_paced) {} 260 probe_cluster_id) {}
261 261
262 PacketInfo(int64_t creation_time_ms, 262 PacketInfo(int64_t creation_time_ms,
263 int64_t arrival_time_ms, 263 int64_t arrival_time_ms,
264 int64_t send_time_ms, 264 int64_t send_time_ms,
265 uint16_t sequence_number, 265 uint16_t sequence_number,
266 size_t payload_size, 266 size_t payload_size,
267 bool was_paced) 267 int probe_cluster_id)
268 : creation_time_ms(creation_time_ms), 268 : creation_time_ms(creation_time_ms),
269 arrival_time_ms(arrival_time_ms), 269 arrival_time_ms(arrival_time_ms),
270 send_time_ms(send_time_ms), 270 send_time_ms(send_time_ms),
271 sequence_number(sequence_number), 271 sequence_number(sequence_number),
272 payload_size(payload_size), 272 payload_size(payload_size),
273 was_paced(was_paced) {} 273 probe_cluster_id(probe_cluster_id) {}
274 274
275 // Time corresponding to when this object was created. 275 // Time corresponding to when this object was created.
276 int64_t creation_time_ms; 276 int64_t creation_time_ms;
277 // Time corresponding to when the packet was received. Timestamped with the 277 // Time corresponding to when the packet was received. Timestamped with the
278 // receiver's clock. 278 // receiver's clock.
279 int64_t arrival_time_ms; 279 int64_t arrival_time_ms;
280 // Time corresponding to when the packet was sent, timestamped with the 280 // Time corresponding to when the packet was sent, timestamped with the
281 // sender's clock. 281 // sender's clock.
282 int64_t send_time_ms; 282 int64_t send_time_ms;
283 // Packet identifier, incremented with 1 for every packet generated by the 283 // Packet identifier, incremented with 1 for every packet generated by the
284 // sender. 284 // sender.
285 uint16_t sequence_number; 285 uint16_t sequence_number;
286 // Size of the packet excluding RTP headers. 286 // Size of the packet excluding RTP headers.
287 size_t payload_size; 287 size_t payload_size;
288 // True if the packet was paced out by the pacer. 288 // Which probing cluster this packet belongs to, -1 means no cluster.
danilchap 2016/05/25 13:00:54 may be something like '-1 means packet is not used
philipel 2016/05/26 09:59:12 Defined kNotAProbe in this class.
289 bool was_paced; 289 int probe_cluster_id;
290 }; 290 };
291 291
292 class TransportFeedbackObserver { 292 class TransportFeedbackObserver {
293 public: 293 public:
294 TransportFeedbackObserver() {} 294 TransportFeedbackObserver() {}
295 virtual ~TransportFeedbackObserver() {} 295 virtual ~TransportFeedbackObserver() {}
296 296
297 // Note: Transport-wide sequence number as sequence number. Arrival time 297 // Note: Transport-wide sequence number as sequence number. Arrival time
298 // must be set to 0. 298 // must be set to 0.
299 virtual void AddPacket(uint16_t sequence_number, 299 virtual void AddPacket(uint16_t sequence_number,
300 size_t length, 300 size_t length,
301 bool was_paced) = 0; 301 int probe_cluster_id) = 0;
302 302
303 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; 303 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0;
304 }; 304 };
305 305
306 class RtcpRttStats { 306 class RtcpRttStats {
307 public: 307 public:
308 virtual void OnRttUpdate(int64_t rtt) = 0; 308 virtual void OnRttUpdate(int64_t rtt) = 0;
309 309
310 virtual int64_t LastProcessedRtt() const = 0; 310 virtual int64_t LastProcessedRtt() const = 0;
311 311
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 class TransportSequenceNumberAllocator { 384 class TransportSequenceNumberAllocator {
385 public: 385 public:
386 TransportSequenceNumberAllocator() {} 386 TransportSequenceNumberAllocator() {}
387 virtual ~TransportSequenceNumberAllocator() {} 387 virtual ~TransportSequenceNumberAllocator() {}
388 388
389 virtual uint16_t AllocateSequenceNumber() = 0; 389 virtual uint16_t AllocateSequenceNumber() = 0;
390 }; 390 };
391 391
392 } // namespace webrtc 392 } // namespace webrtc
393 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 393 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698