| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 return TransportChannelState::STATE_CONNECTING; | 79 return TransportChannelState::STATE_CONNECTING; |
| 80 } | 80 } |
| 81 | 81 |
| 82 void SetIceRole(IceRole role) override { role_ = role; } | 82 void SetIceRole(IceRole role) override { role_ = role; } |
| 83 IceRole GetIceRole() const override { return role_; } | 83 IceRole GetIceRole() const override { return role_; } |
| 84 void SetIceTiebreaker(uint64_t tiebreaker) override { | 84 void SetIceTiebreaker(uint64_t tiebreaker) override { |
| 85 tiebreaker_ = tiebreaker; | 85 tiebreaker_ = tiebreaker; |
| 86 } | 86 } |
| 87 void SetIceCredentials(const std::string& ice_ufrag, | 87 void SetIceParameters(const IceParameters& ice_params) override { |
| 88 const std::string& ice_pwd) override { | 88 ice_ufrag_ = ice_params.ufrag; |
| 89 ice_ufrag_ = ice_ufrag; | 89 ice_pwd_ = ice_params.pwd; |
| 90 ice_pwd_ = ice_pwd; | |
| 91 } | 90 } |
| 92 void SetRemoteIceCredentials(const std::string& ice_ufrag, | 91 void SetRemoteIceParameters(const IceParameters& params) override { |
| 93 const std::string& ice_pwd) override { | 92 remote_ice_ufrag_ = params.ufrag; |
| 94 remote_ice_ufrag_ = ice_ufrag; | 93 remote_ice_pwd_ = params.pwd; |
| 95 remote_ice_pwd_ = ice_pwd; | |
| 96 } | 94 } |
| 97 | 95 |
| 98 void SetRemoteIceMode(IceMode mode) override { remote_ice_mode_ = mode; } | 96 void SetRemoteIceMode(IceMode mode) override { remote_ice_mode_ = mode; } |
| 99 bool SetRemoteFingerprint(const std::string& alg, | 97 bool SetRemoteFingerprint(const std::string& alg, |
| 100 const uint8_t* digest, | 98 const uint8_t* digest, |
| 101 size_t digest_len) override { | 99 size_t digest_len) override { |
| 102 dtls_fingerprint_ = rtc::SSLFingerprint(alg, digest, digest_len); | 100 dtls_fingerprint_ = rtc::SSLFingerprint(alg, digest, digest_len); |
| 103 return true; | 101 return true; |
| 104 } | 102 } |
| 105 bool SetSslRole(rtc::SSLRole role) override { | 103 bool SetSslRole(rtc::SSLRole role) override { |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 } | 570 } |
| 573 } | 571 } |
| 574 | 572 |
| 575 private: | 573 private: |
| 576 bool fail_create_channel_; | 574 bool fail_create_channel_; |
| 577 }; | 575 }; |
| 578 | 576 |
| 579 } // namespace cricket | 577 } // namespace cricket |
| 580 | 578 |
| 581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 579 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |