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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const std::string& ice_pwd) override; | 85 const std::string& ice_pwd) override; |
86 void SetRemoteIceCredentials(const std::string& ice_ufrag, | 86 void SetRemoteIceCredentials(const std::string& ice_ufrag, |
87 const std::string& ice_pwd) override; | 87 const std::string& ice_pwd) override; |
88 void SetRemoteIceMode(IceMode mode) override; | 88 void SetRemoteIceMode(IceMode mode) override; |
89 void Connect() override; | 89 void Connect() override; |
90 void MaybeStartGathering() override; | 90 void MaybeStartGathering() override; |
91 IceGatheringState gathering_state() const override { | 91 IceGatheringState gathering_state() const override { |
92 return gathering_state_; | 92 return gathering_state_; |
93 } | 93 } |
94 void AddRemoteCandidate(const Candidate& candidate) override; | 94 void AddRemoteCandidate(const Candidate& candidate) override; |
| 95 void RemoveRemoteCandidate(const Candidate& candidate) override; |
95 // Sets the receiving timeout and gather_continually. | 96 // Sets the receiving timeout and gather_continually. |
96 // This also sets the check_receiving_delay proportionally. | 97 // This also sets the check_receiving_delay proportionally. |
97 void SetIceConfig(const IceConfig& config) override; | 98 void SetIceConfig(const IceConfig& config) override; |
98 const IceConfig& config() const; | 99 const IceConfig& config() const; |
99 | 100 |
100 // From TransportChannel: | 101 // From TransportChannel: |
101 int SendPacket(const char* data, | 102 int SendPacket(const char* data, |
102 size_t len, | 103 size_t len, |
103 const rtc::PacketOptions& options, | 104 const rtc::PacketOptions& options, |
104 int flags) override; | 105 int flags) override; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 int weak_ping_delay_ = WEAK_PING_DELAY; | 323 int weak_ping_delay_ = WEAK_PING_DELAY; |
323 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 324 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
324 IceConfig config_; | 325 IceConfig config_; |
325 | 326 |
326 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 327 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
327 }; | 328 }; |
328 | 329 |
329 } // namespace cricket | 330 } // namespace cricket |
330 | 331 |
331 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 332 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |