Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.h

Issue 1648813004: Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix a Windows compiling error Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const std::string& ice_pwd) override; 84 const std::string& ice_pwd) override;
85 void SetRemoteIceCredentials(const std::string& ice_ufrag, 85 void SetRemoteIceCredentials(const std::string& ice_ufrag,
86 const std::string& ice_pwd) override; 86 const std::string& ice_pwd) override;
87 void SetRemoteIceMode(IceMode mode) override; 87 void SetRemoteIceMode(IceMode mode) override;
88 void Connect() override; 88 void Connect() override;
89 void MaybeStartGathering() override; 89 void MaybeStartGathering() override;
90 IceGatheringState gathering_state() const override { 90 IceGatheringState gathering_state() const override {
91 return gathering_state_; 91 return gathering_state_;
92 } 92 }
93 void AddRemoteCandidate(const Candidate& candidate) override; 93 void AddRemoteCandidate(const Candidate& candidate) override;
94 void RemoveRemoteCandidate(const Candidate& candidate) override;
94 // Sets the receiving timeout and gather_continually. 95 // Sets the receiving timeout and gather_continually.
95 // This also sets the check_receiving_delay proportionally. 96 // This also sets the check_receiving_delay proportionally.
96 void SetIceConfig(const IceConfig& config) override; 97 void SetIceConfig(const IceConfig& config) override;
97 98
98 // From TransportChannel: 99 // From TransportChannel:
99 int SendPacket(const char* data, 100 int SendPacket(const char* data,
100 size_t len, 101 size_t len,
101 const rtc::PacketOptions& options, 102 const rtc::PacketOptions& options,
102 int flags) override; 103 int flags) override;
103 int SetOption(rtc::Socket::Option opt, int value) override; 104 int SetOption(rtc::Socket::Option opt, int value) override;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bool gather_continually_ = false; 300 bool gather_continually_ = false;
300 int weak_ping_delay_ = WEAK_PING_DELAY; 301 int weak_ping_delay_ = WEAK_PING_DELAY;
301 TransportChannelState state_ = TransportChannelState::STATE_INIT; 302 TransportChannelState state_ = TransportChannelState::STATE_INIT;
302 303
303 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 304 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
304 }; 305 };
305 306
306 } // namespace cricket 307 } // namespace cricket
307 308
308 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 309 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698