OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Creates a channel if it doesn't exist. Otherwise, increments a reference | 114 // Creates a channel if it doesn't exist. Otherwise, increments a reference |
115 // count and returns an existing channel. | 115 // count and returns an existing channel. |
116 TransportChannel* CreateTransportChannel(const std::string& transport_name, | 116 TransportChannel* CreateTransportChannel(const std::string& transport_name, |
117 int component); | 117 int component); |
118 virtual TransportChannel* CreateTransportChannel_n( | 118 virtual TransportChannel* CreateTransportChannel_n( |
119 const std::string& transport_name, | 119 const std::string& transport_name, |
120 int component); | 120 int component); |
121 | 121 |
122 // Decrements a channel's reference count, and destroys the channel if | 122 // Decrements a channel's reference count, and destroys the channel if |
123 // nothing is referencing it. | 123 // nothing is referencing it. |
| 124 virtual void DestroyTransportChannel(const std::string& transport_name, |
| 125 int component); |
124 virtual void DestroyTransportChannel_n(const std::string& transport_name, | 126 virtual void DestroyTransportChannel_n(const std::string& transport_name, |
125 int component); | 127 int component); |
126 | 128 |
127 void use_quic() { quic_ = true; } | 129 void use_quic() { quic_ = true; } |
128 bool quic() const { return quic_; } | 130 bool quic() const { return quic_; } |
129 | 131 |
130 // TODO(deadbeef): Remove all for_testing methods! | 132 // TODO(deadbeef): Remove all for_testing methods! |
131 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing() | 133 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing() |
132 const { | 134 const { |
133 return certificate_; | 135 return certificate_; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 bool quic_ = false; | 269 bool quic_ = false; |
268 | 270 |
269 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 271 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
270 | 272 |
271 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController); | 273 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController); |
272 }; | 274 }; |
273 | 275 |
274 } // namespace cricket | 276 } // namespace cricket |
275 | 277 |
276 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ | 278 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ |
OLD | NEW |