Chromium Code Reviews| 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; | |
|
Taylor Brandstetter
2017/02/02 18:07:41
This method isn't really necessary, since the DTLS
pthatcher2
2017/02/02 21:52:57
I'd prefer that the DltsTransport only look at the
| |
| 110 | 111 |
| 111 // TODO(honghaiz): Remove this method once the reference of it in | 112 // TODO(honghaiz): Remove this method once the reference of it in |
| 112 // Chromoting is removed. | 113 // Chromoting is removed. |
| 113 const Connection* best_connection() const { return selected_connection_; } | 114 const Connection* best_connection() const { return selected_connection_; } |
| 114 | 115 |
| 115 const Connection* selected_connection() const { return selected_connection_; } | 116 const Connection* selected_connection() const { return selected_connection_; } |
| 116 void set_incoming_only(bool value) { incoming_only_ = value; } | 117 void set_incoming_only(bool value) { incoming_only_ = value; } |
| 117 | 118 |
| 118 // Note: These are only for testing purpose. | 119 // Note: These are only for testing purpose. |
| 119 // |ports_| and |pruned_ports| should not be changed from outside. | 120 // |ports_| and |pruned_ports| should not be changed from outside. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 bool writable_ = false; | 368 bool writable_ = false; |
| 368 | 369 |
| 369 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 370 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
| 370 | 371 |
| 371 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 372 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 372 }; | 373 }; |
| 373 | 374 |
| 374 } // namespace cricket | 375 } // namespace cricket |
| 375 | 376 |
| 376 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 377 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |