OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |