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

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

Issue 2141863003: Adding an end-to-end connection time test. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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
« webrtc/base/fakenetwork.h ('K') | « webrtc/p2p/base/testturnserver.h ('k') | no next file » | 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Whether we should prioritize Relay/Relay candidate when nothing 166 // Whether we should prioritize Relay/Relay candidate when nothing
167 // is writable yet. 167 // is writable yet.
168 bool prioritize_most_likely_candidate_pairs = false; 168 bool prioritize_most_likely_candidate_pairs = false;
169 169
170 // Writable connections are pinged at a slower rate once stablized. 170 // Writable connections are pinged at a slower rate once stablized.
171 int stable_writable_connection_ping_interval = -1; 171 int stable_writable_connection_ping_interval = -1;
172 172
173 // If set to true, this means the ICE transport should presume TURN-to-TURN 173 // If set to true, this means the ICE transport should presume TURN-to-TURN
174 // candidate pairs will succeed, even before a binding response is received. 174 // candidate pairs will succeed, even before a binding response is received.
175 bool presume_writable_when_fully_relayed = false; 175 bool presume_writable_when_fully_relayed = true;
176 176
177 IceConfig() {} 177 IceConfig() {}
178 IceConfig(int receiving_timeout_ms, 178 IceConfig(int receiving_timeout_ms,
179 int backup_connection_ping_interval, 179 int backup_connection_ping_interval,
180 bool gather_continually, 180 bool gather_continually,
181 bool prioritize_most_likely_candidate_pairs, 181 bool prioritize_most_likely_candidate_pairs,
182 int stable_writable_connection_ping_interval_ms, 182 int stable_writable_connection_ping_interval_ms,
183 bool presume_writable_when_fully_relayed) 183 bool presume_writable_when_fully_relayed)
184 : receiving_timeout(receiving_timeout_ms), 184 : receiving_timeout(receiving_timeout_ms),
185 backup_connection_ping_interval(backup_connection_ping_interval), 185 backup_connection_ping_interval(backup_connection_ping_interval),
186 gather_continually(gather_continually), 186 gather_continually(gather_continually),
187 prioritize_most_likely_candidate_pairs( 187 prioritize_most_likely_candidate_pairs(
188 prioritize_most_likely_candidate_pairs), 188 prioritize_most_likely_candidate_pairs),
189 stable_writable_connection_ping_interval( 189 stable_writable_connection_ping_interval(
190 stable_writable_connection_ping_interval_ms), 190 stable_writable_connection_ping_interval_ms),
191 presume_writable_when_fully_relayed( 191 presume_writable_when_fully_relayed(true) {}
192 presume_writable_when_fully_relayed) {}
193 }; 192 };
194 193
195 bool BadTransportDescription(const std::string& desc, std::string* err_desc); 194 bool BadTransportDescription(const std::string& desc, std::string* err_desc);
196 195
197 bool IceCredentialsChanged(const std::string& old_ufrag, 196 bool IceCredentialsChanged(const std::string& old_ufrag,
198 const std::string& old_pwd, 197 const std::string& old_pwd,
199 const std::string& new_ufrag, 198 const std::string& new_ufrag,
200 const std::string& new_pwd); 199 const std::string& new_pwd);
201 200
202 class Transport : public sigslot::has_slots<> { 201 class Transport : public sigslot::has_slots<> {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 368
370 ChannelMap channels_; 369 ChannelMap channels_;
371 370
372 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 371 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
373 }; 372 };
374 373
375 374
376 } // namespace cricket 375 } // namespace cricket
377 376
378 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 377 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« webrtc/base/fakenetwork.h ('K') | « webrtc/p2p/base/testturnserver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698