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

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

Issue 2395243005: Prune connections based on network name. (Closed)
Patch Set: Override system-provided HasIPv6Enabled method Created 4 years, 2 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/fakeportallocator.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 bool PresumedWritable(const cricket::Connection* conn) const; 242 bool PresumedWritable(const cricket::Connection* conn) const;
243 243
244 void SortConnectionsAndUpdateState(); 244 void SortConnectionsAndUpdateState();
245 void SwitchSelectedConnection(Connection* conn); 245 void SwitchSelectedConnection(Connection* conn);
246 void UpdateState(); 246 void UpdateState();
247 void HandleAllTimedOut(); 247 void HandleAllTimedOut();
248 void MaybeStopPortAllocatorSessions(); 248 void MaybeStopPortAllocatorSessions();
249 TransportChannelState ComputeState() const; 249 TransportChannelState ComputeState() const;
250 250
251 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
252 bool CreateConnections(const Candidate& remote_candidate, 251 bool CreateConnections(const Candidate& remote_candidate,
253 PortInterface* origin_port); 252 PortInterface* origin_port);
254 bool CreateConnection(PortInterface* port, 253 bool CreateConnection(PortInterface* port,
255 const Candidate& remote_candidate, 254 const Candidate& remote_candidate,
256 PortInterface* origin_port); 255 PortInterface* origin_port);
257 bool FindConnection(cricket::Connection* connection) const; 256 bool FindConnection(cricket::Connection* connection) const;
258 257
259 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); 258 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate);
260 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 259 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
261 void RememberRemoteCandidate(const Candidate& remote_candidate, 260 void RememberRemoteCandidate(const Candidate& remote_candidate,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 uint32_t nomination_ = 0; 399 uint32_t nomination_ = 0;
401 400
402 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 401 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
403 402
404 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 403 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
405 }; 404 };
406 405
407 } // namespace cricket 406 } // namespace cricket
408 407
409 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 408 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/fakeportallocator.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698