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

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

Issue 2099563004: Start ICE connectivity checks as soon as the first pair is pingable. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updating unit test failures. We ping too fast for our own good. Created 4 years, 6 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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 channel_->SetIceCredentials(ice_ufrag, ice_pwd); 169 channel_->SetIceCredentials(ice_ufrag, ice_pwd);
170 } 170 }
171 void SetRemoteIceCredentials(const std::string& ice_ufrag, 171 void SetRemoteIceCredentials(const std::string& ice_ufrag,
172 const std::string& ice_pwd) override { 172 const std::string& ice_pwd) override {
173 channel_->SetRemoteIceCredentials(ice_ufrag, ice_pwd); 173 channel_->SetRemoteIceCredentials(ice_ufrag, ice_pwd);
174 } 174 }
175 void SetRemoteIceMode(IceMode mode) override { 175 void SetRemoteIceMode(IceMode mode) override {
176 channel_->SetRemoteIceMode(mode); 176 channel_->SetRemoteIceMode(mode);
177 } 177 }
178 178
179 void Connect() override;
180
181 void MaybeStartGathering() override { channel_->MaybeStartGathering(); } 179 void MaybeStartGathering() override { channel_->MaybeStartGathering(); }
182 180
183 IceGatheringState gathering_state() const override { 181 IceGatheringState gathering_state() const override {
184 return channel_->gathering_state(); 182 return channel_->gathering_state();
185 } 183 }
186 184
187 void AddRemoteCandidate(const Candidate& candidate) override { 185 void AddRemoteCandidate(const Candidate& candidate) override {
188 channel_->AddRemoteCandidate(candidate); 186 channel_->AddRemoteCandidate(candidate);
189 } 187 }
190 void RemoveRemoteCandidate(const Candidate& candidate) override { 188 void RemoveRemoteCandidate(const Candidate& candidate) override {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // transport channel became writable, or before a remote fingerprint was 240 // transport channel became writable, or before a remote fingerprint was
243 // received. 241 // received.
244 rtc::Buffer cached_client_hello_; 242 rtc::Buffer cached_client_hello_;
245 243
246 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 244 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
247 }; 245 };
248 246
249 } // namespace cricket 247 } // namespace cricket
250 248
251 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 249 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | webrtc/p2p/base/p2ptransportchannel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698