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

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

Issue 2171183002: Remove ports that are not used by any channel after timeout (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: fix a comment 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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 int GetError() override { return error_; } 120 int GetError() override { return error_; }
121 bool GetStats(std::vector<ConnectionInfo>* stats) override; 121 bool GetStats(std::vector<ConnectionInfo>* stats) override;
122 122
123 // TODO(honghaiz): Remove this method once the reference of it in 123 // TODO(honghaiz): Remove this method once the reference of it in
124 // Chromoting is removed. 124 // Chromoting is removed.
125 const Connection* best_connection() const { return selected_connection_; } 125 const Connection* best_connection() const { return selected_connection_; }
126 126
127 const Connection* selected_connection() const { return selected_connection_; } 127 const Connection* selected_connection() const { return selected_connection_; }
128 void set_incoming_only(bool value) { incoming_only_ = value; } 128 void set_incoming_only(bool value) { incoming_only_ = value; }
129 129
130 // Note: This is only for testing purpose. 130 // Note: They are only for testing purpose.
pthatcher1 2016/07/27 18:33:15 They are => These are or => The following are
honghaiz3 2016/07/28 01:22:49 Done.
131 // |ports_| should not be changed from outside. 131 // |ports_| should not be changed from outside.
132 const std::vector<PortInterface*>& ports() { return ports_; } 132 const std::vector<PortInterface*>& ports() { return ports_; }
133 const std::vector<PortInterface*>& removed_ports() { return removed_ports_; }
133 134
134 IceMode remote_ice_mode() const { return remote_ice_mode_; } 135 IceMode remote_ice_mode() const { return remote_ice_mode_; }
135 136
136 // DTLS methods. 137 // DTLS methods.
137 bool IsDtlsActive() const override { return false; } 138 bool IsDtlsActive() const override { return false; }
138 139
139 // Default implementation. 140 // Default implementation.
140 bool GetSslRole(rtc::SSLRole* role) const override { return false; } 141 bool GetSslRole(rtc::SSLRole* role) const override { return false; }
141 142
142 bool SetSslRole(rtc::SSLRole role) override { return false; } 143 bool SetSslRole(rtc::SSLRole role) override { return false; }
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 IceConfig config_; 404 IceConfig config_;
404 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 405 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
405 bool started_pinging_ = false; 406 bool started_pinging_ = false;
406 407
407 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 408 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
408 }; 409 };
409 410
410 } // namespace cricket 411 } // namespace cricket
411 412
412 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 413 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | webrtc/p2p/base/p2ptransportchannel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698