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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // From TransportChannel: | 101 // From TransportChannel: |
102 int SendPacket(const char* data, | 102 int SendPacket(const char* data, |
103 size_t len, | 103 size_t len, |
104 const rtc::PacketOptions& options, | 104 const rtc::PacketOptions& options, |
105 int flags) override; | 105 int flags) override; |
106 int SetOption(rtc::Socket::Option opt, int value) override; | 106 int SetOption(rtc::Socket::Option opt, int value) override; |
107 bool GetOption(rtc::Socket::Option opt, int* value) override; | 107 bool GetOption(rtc::Socket::Option opt, int* value) override; |
108 int GetError() override { return error_; } | 108 int GetError() override { return error_; } |
109 bool GetStats(std::vector<ConnectionInfo>* stats) override; | 109 bool GetStats(std::vector<ConnectionInfo>* stats) override; |
110 rtc::Optional<int> GetRttEstimate() override; | |
111 | 110 |
112 // TODO(honghaiz): Remove this method once the reference of it in | 111 // TODO(honghaiz): Remove this method once the reference of it in |
113 // Chromoting is removed. | 112 // Chromoting is removed. |
114 const Connection* best_connection() const { return selected_connection_; } | 113 const Connection* best_connection() const { return selected_connection_; } |
115 | 114 |
116 const Connection* selected_connection() const { return selected_connection_; } | 115 const Connection* selected_connection() const { return selected_connection_; } |
117 void set_incoming_only(bool value) { incoming_only_ = value; } | 116 void set_incoming_only(bool value) { incoming_only_ = value; } |
118 | 117 |
119 // Note: These are only for testing purpose. | 118 // Note: These are only for testing purpose. |
120 // |ports_| and |pruned_ports| should not be changed from outside. | 119 // |ports_| and |pruned_ports| should not be changed from outside. |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 bool writable_ = false; | 367 bool writable_ = false; |
369 | 368 |
370 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 369 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
371 | 370 |
372 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 371 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
373 }; | 372 }; |
374 | 373 |
375 } // namespace cricket | 374 } // namespace cricket |
376 | 375 |
377 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 376 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |