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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.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/icetransportinternal.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('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 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // From TransportChannel: 101 // From TransportChannel:
102 int SendPacket(const char* data, 102 int SendPacket(const char* data,
103 size_t len, 103 size_t len,
104 const rtc::PacketOptions& options, 104 const rtc::PacketOptions& options,
105 int flags) override; 105 int flags) override;
106 int SetOption(rtc::Socket::Option opt, int value) override; 106 int SetOption(rtc::Socket::Option opt, int value) override;
107 bool GetOption(rtc::Socket::Option opt, int* value) override; 107 bool GetOption(rtc::Socket::Option opt, int* value) override;
108 int GetError() override { return error_; } 108 int GetError() override { return error_; }
109 bool GetStats(std::vector<ConnectionInfo>* stats) override; 109 bool GetStats(std::vector<ConnectionInfo>* stats) override;
110 rtc::Optional<int> GetRttEstimate() override;
110 111
111 // TODO(honghaiz): Remove this method once the reference of it in 112 // TODO(honghaiz): Remove this method once the reference of it in
112 // Chromoting is removed. 113 // Chromoting is removed.
113 const Connection* best_connection() const { return selected_connection_; } 114 const Connection* best_connection() const { return selected_connection_; }
114 115
115 const Connection* selected_connection() const { return selected_connection_; } 116 const Connection* selected_connection() const { return selected_connection_; }
116 void set_incoming_only(bool value) { incoming_only_ = value; } 117 void set_incoming_only(bool value) { incoming_only_ = value; }
117 118
118 // Note: These are only for testing purpose. 119 // Note: These are only for testing purpose.
119 // |ports_| and |pruned_ports| should not be changed from outside. 120 // |ports_| and |pruned_ports| should not be changed from outside.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 bool writable_ = false; 368 bool writable_ = false;
368 369
369 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 370 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
370 371
371 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 372 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
372 }; 373 };
373 374
374 } // namespace cricket 375 } // namespace cricket
375 376
376 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 377 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/icetransportinternal.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698