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

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

Issue 2670113002: Pick the DTLS handshake timeout based on the ICE RTT estimate (Closed)
Patch Set: Rename InitialHandshakeRetransmissionTimeout -> InitialRetransmissionTimeout. Created 3 years, 10 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
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.cc ('k') | webrtc/p2p/base/icetransportinternal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2017 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 void RemoveRemoteCandidate(const Candidate& candidate) override {} 145 void RemoveRemoteCandidate(const Candidate& candidate) override {}
146 146
147 bool GetStats(ConnectionInfos* infos) override { 147 bool GetStats(ConnectionInfos* infos) override {
148 ConnectionInfo info; 148 ConnectionInfo info;
149 infos->clear(); 149 infos->clear();
150 infos->push_back(info); 150 infos->push_back(info);
151 return true; 151 return true;
152 } 152 }
153 153
154 rtc::Optional<int> GetRttEstimate() override {
155 return rtc::Optional<int>();
156 }
157
154 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { 158 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override {
155 } 159 }
156 160
157 // Fake PacketTransportInterface implementation. 161 // Fake PacketTransportInterface implementation.
158 bool writable() const override { return writable_; } 162 bool writable() const override { return writable_; }
159 bool receiving() const override { return receiving_; } 163 bool receiving() const override { return receiving_; }
160 int SendPacket(const char* data, 164 int SendPacket(const char* data,
161 size_t len, 165 size_t len,
162 const rtc::PacketOptions& options, 166 const rtc::PacketOptions& options,
163 int flags) override { 167 int flags) override {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 size_t connection_count_ = 0; 231 size_t connection_count_ = 0;
228 IceGatheringState gathering_state_ = kIceGatheringNew; 232 IceGatheringState gathering_state_ = kIceGatheringNew;
229 bool had_connection_ = false; 233 bool had_connection_ = false;
230 bool writable_ = false; 234 bool writable_ = false;
231 bool receiving_ = false; 235 bool receiving_ = false;
232 }; 236 };
233 237
234 } // namespace cricket 238 } // namespace cricket
235 239
236 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ 240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.cc ('k') | webrtc/p2p/base/icetransportinternal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698