Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 524 // side stops using it as well. | 524 // side stops using it as well. |
| 525 bool pruned() const { return pruned_; } | 525 bool pruned() const { return pruned_; } |
| 526 void Prune(); | 526 void Prune(); |
| 527 | 527 |
| 528 bool use_candidate_attr() const { return use_candidate_attr_; } | 528 bool use_candidate_attr() const { return use_candidate_attr_; } |
| 529 void set_use_candidate_attr(bool enable); | 529 void set_use_candidate_attr(bool enable); |
| 530 | 530 |
| 531 void set_nomination(uint32_t value) { nomination_ = value; } | 531 void set_nomination(uint32_t value) { nomination_ = value; } |
| 532 | 532 |
| 533 uint32_t remote_nomination() const { return remote_nomination_; } | 533 uint32_t remote_nomination() const { return remote_nomination_; } |
| 534 bool nominated() const { return remote_nomination_ > 0; } | 534 bool nominated() const { return acked_nomination_ || remote_nomination_; } |
|
hbos
2017/02/23 13:38:56
According to https://tools.ietf.org/html/rfc5245#s
Taylor Brandstetter
2017/02/24 05:38:31
webrtc-stats refers to the "nominated" flag from I
hbos
2017/02/24 11:09:13
Done.
| |
| 535 // Public for unit tests. | 535 // Public for unit tests. |
| 536 void set_remote_nomination(uint32_t remote_nomination) { | 536 void set_remote_nomination(uint32_t remote_nomination) { |
| 537 remote_nomination_ = remote_nomination; | 537 remote_nomination_ = remote_nomination; |
| 538 } | 538 } |
| 539 // Public for unit tests. | 539 // Public for unit tests. |
| 540 uint32_t acked_nomination() const { return acked_nomination_; } | 540 uint32_t acked_nomination() const { return acked_nomination_; } |
| 541 | 541 |
| 542 void set_remote_ice_mode(IceMode mode) { | 542 void set_remote_ice_mode(IceMode mode) { |
| 543 remote_ice_mode_ = mode; | 543 remote_ice_mode_ = mode; |
| 544 } | 544 } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 728 const rtc::PacketOptions& options) override; | 728 const rtc::PacketOptions& options) override; |
| 729 int GetError() override { return error_; } | 729 int GetError() override { return error_; } |
| 730 | 730 |
| 731 private: | 731 private: |
| 732 int error_ = 0; | 732 int error_ = 0; |
| 733 }; | 733 }; |
| 734 | 734 |
| 735 } // namespace cricket | 735 } // namespace cricket |
| 736 | 736 |
| 737 #endif // WEBRTC_P2P_BASE_PORT_H_ | 737 #endif // WEBRTC_P2P_BASE_PORT_H_ |
| OLD | NEW |