| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 virtual void SetLocalCertificate( | 207 virtual void SetLocalCertificate( |
| 208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {} | 208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {} |
| 209 | 209 |
| 210 // Get a copy of the local certificate provided by SetLocalCertificate. | 210 // Get a copy of the local certificate provided by SetLocalCertificate. |
| 211 virtual bool GetLocalCertificate( | 211 virtual bool GetLocalCertificate( |
| 212 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) { | 212 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) { |
| 213 return false; | 213 return false; |
| 214 } | 214 } |
| 215 | 215 |
| 216 // Get a copy of the remote certificate in use by the specified channel. | 216 // Get a copy of the remote certificate in use by the specified channel. |
| 217 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert); | 217 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate(); |
| 218 | 218 |
| 219 // Create, destroy, and lookup the channels of this type by their components. | 219 // Create, destroy, and lookup the channels of this type by their components. |
| 220 TransportChannelImpl* CreateChannel(int component); | 220 TransportChannelImpl* CreateChannel(int component); |
| 221 | 221 |
| 222 TransportChannelImpl* GetChannel(int component); | 222 TransportChannelImpl* GetChannel(int component); |
| 223 | 223 |
| 224 bool HasChannel(int component) { | 224 bool HasChannel(int component) { |
| 225 return (NULL != GetChannel(component)); | 225 return (NULL != GetChannel(component)); |
| 226 } | 226 } |
| 227 bool HasChannels(); | 227 bool HasChannels(); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 ChannelMap channels_; | 341 ChannelMap channels_; |
| 342 | 342 |
| 343 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 343 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 | 346 |
| 347 } // namespace cricket | 347 } // namespace cricket |
| 348 | 348 |
| 349 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 349 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
| OLD | NEW |