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

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

Issue 2095263002: Delete a method that was not used. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@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
« no previous file with comments | « no previous file | 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Compares two connections based on the connection states 224 // Compares two connections based on the connection states
225 // (writable/receiving/connected), nomination states, last data received time, 225 // (writable/receiving/connected), nomination states, last data received time,
226 // and static preferences. Does not include latency. Used by both sorting 226 // and static preferences. Does not include latency. Used by both sorting
227 // and ShouldSwitchSelectedConnection(). 227 // and ShouldSwitchSelectedConnection().
228 // Returns a positive value if |a| is better than |b|. 228 // Returns a positive value if |a| is better than |b|.
229 int CompareConnections(const cricket::Connection* a, 229 int CompareConnections(const cricket::Connection* a,
230 const cricket::Connection* b) const; 230 const cricket::Connection* b) const;
231 231
232 bool PresumedWritable(const cricket::Connection* conn) const; 232 bool PresumedWritable(const cricket::Connection* conn) const;
233 233
234 bool ShouldSwitchSelectedConnection(const cricket::Connection* selected,
235 const cricket::Connection* conn) const;
236 void SortConnections(); 234 void SortConnections();
237 void SwitchSelectedConnection(Connection* conn); 235 void SwitchSelectedConnection(Connection* conn);
238 void UpdateState(); 236 void UpdateState();
239 void HandleAllTimedOut(); 237 void HandleAllTimedOut();
240 void MaybeStopPortAllocatorSessions(); 238 void MaybeStopPortAllocatorSessions();
241 TransportChannelState ComputeState() const; 239 TransportChannelState ComputeState() const;
242 240
243 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; 241 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
244 bool CreateConnections(const Candidate& remote_candidate, 242 bool CreateConnections(const Candidate& remote_candidate,
245 PortInterface* origin_port); 243 PortInterface* origin_port);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 TransportChannelState state_ = TransportChannelState::STATE_INIT; 364 TransportChannelState state_ = TransportChannelState::STATE_INIT;
367 IceConfig config_; 365 IceConfig config_;
368 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 366 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
369 367
370 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 368 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
371 }; 369 };
372 370
373 } // namespace cricket 371 } // namespace cricket
374 372
375 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 373 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698