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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 { |
| 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_ |
OLD | NEW |