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

Side by Side Diff: webrtc/modules/include/module_common_types.h

Issue 2708873003: Propagate packet pacing information to SendTimeHistory. (Closed)
Patch Set: . Created 3 years, 10 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 struct PacedPacketInfo { 532 struct PacedPacketInfo {
533 PacedPacketInfo() {} 533 PacedPacketInfo() {}
534 PacedPacketInfo(int probe_cluster_id, 534 PacedPacketInfo(int probe_cluster_id,
535 int probe_cluster_min_probes, 535 int probe_cluster_min_probes,
536 int probe_cluster_min_bytes) 536 int probe_cluster_min_bytes)
537 : probe_cluster_id(probe_cluster_id), 537 : probe_cluster_id(probe_cluster_id),
538 probe_cluster_min_probes(probe_cluster_min_probes), 538 probe_cluster_min_probes(probe_cluster_min_probes),
539 probe_cluster_min_bytes(probe_cluster_min_bytes) {} 539 probe_cluster_min_bytes(probe_cluster_min_bytes) {}
540 540
541 bool operator==(const PacedPacketInfo& rhs) const {
nisse-webrtc 2017/02/22 12:37:47 Is this for tests only?
philipel 2017/02/22 13:11:26 Yes, I implemented it for convenience sake to make
542 return send_bitrate_bps == rhs.send_bitrate_bps &&
543 probe_cluster_id == rhs.probe_cluster_id &&
544 probe_cluster_min_probes == rhs.probe_cluster_min_probes &&
545 probe_cluster_min_bytes == rhs.probe_cluster_min_bytes;
546 }
547
541 static constexpr int kNotAProbe = -1; 548 static constexpr int kNotAProbe = -1;
542 int send_bitrate_bps = -1; 549 int send_bitrate_bps = -1;
543 int probe_cluster_id = kNotAProbe; 550 int probe_cluster_id = kNotAProbe;
544 int probe_cluster_min_probes = -1; 551 int probe_cluster_min_probes = -1;
545 int probe_cluster_min_bytes = -1; 552 int probe_cluster_min_bytes = -1;
546 }; 553 };
547 554
548 } // namespace webrtc 555 } // namespace webrtc
549 556
550 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ 557 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698