| 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 586 |
| 587 IceMode remote_ice_mode() const { return remote_ice_mode_; } | 587 IceMode remote_ice_mode() const { return remote_ice_mode_; } |
| 588 | 588 |
| 589 uint32_t ComputeNetworkCost() const; | 589 uint32_t ComputeNetworkCost() const; |
| 590 | 590 |
| 591 // Update the ICE password and/or generation of the remote candidate if a | 591 // Update the ICE password and/or generation of the remote candidate if a |
| 592 // ufrag in |remote_ice_parameters| matches the candidate's ufrag, and the | 592 // ufrag in |remote_ice_parameters| matches the candidate's ufrag, and the |
| 593 // candidate's password and/or ufrag has not been set. | 593 // candidate's password and/or ufrag has not been set. |
| 594 // |remote_ice_parameters| should be a list of known ICE parameters ordered | 594 // |remote_ice_parameters| should be a list of known ICE parameters ordered |
| 595 // by generation. | 595 // by generation. |
| 596 void MaybeSetRemoteIceCredentialsAndGeneration(const std::string& ice_ufrag, | 596 void MaybeSetRemoteIceParametersAndGeneration(const IceParameters& params, |
| 597 const std::string& ice_pwd, | 597 int generation); |
| 598 int generation); | |
| 599 | 598 |
| 600 // If |remote_candidate_| is peer reflexive and is equivalent to | 599 // If |remote_candidate_| is peer reflexive and is equivalent to |
| 601 // |new_candidate| except the type, update |remote_candidate_| to | 600 // |new_candidate| except the type, update |remote_candidate_| to |
| 602 // |new_candidate|. | 601 // |new_candidate|. |
| 603 void MaybeUpdatePeerReflexiveCandidate(const Candidate& new_candidate); | 602 void MaybeUpdatePeerReflexiveCandidate(const Candidate& new_candidate); |
| 604 | 603 |
| 605 // Returns the last received time of any data, stun request, or stun | 604 // Returns the last received time of any data, stun request, or stun |
| 606 // response in milliseconds | 605 // response in milliseconds |
| 607 int64_t last_received() const; | 606 int64_t last_received() const; |
| 608 // Returns the last time when the connection changed its receiving state. | 607 // Returns the last time when the connection changed its receiving state. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 const rtc::PacketOptions& options) override; | 713 const rtc::PacketOptions& options) override; |
| 715 int GetError() override { return error_; } | 714 int GetError() override { return error_; } |
| 716 | 715 |
| 717 private: | 716 private: |
| 718 int error_ = 0; | 717 int error_ = 0; |
| 719 }; | 718 }; |
| 720 | 719 |
| 721 } // namespace cricket | 720 } // namespace cricket |
| 722 | 721 |
| 723 #endif // WEBRTC_P2P_BASE_PORT_H_ | 722 #endif // WEBRTC_P2P_BASE_PORT_H_ |
| OLD | NEW |