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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 virtual bool VerifyCandidate(const Candidate& candidate, | 243 virtual bool VerifyCandidate(const Candidate& candidate, |
244 std::string* error); | 244 std::string* error); |
245 | 245 |
246 virtual bool GetSslRole(rtc::SSLRole* ssl_role) const { return false; } | 246 virtual bool GetSslRole(rtc::SSLRole* ssl_role) const { return false; } |
247 | 247 |
248 // Must be called before channel is starting to connect. | 248 // Must be called before channel is starting to connect. |
249 virtual bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version) { | 249 virtual bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version) { |
250 return false; | 250 return false; |
251 } | 251 } |
252 | 252 |
| 253 // Must be called before channel is starting to connect. |
| 254 virtual bool SetEnableGcmCiphers(bool enable) { |
| 255 return false; |
| 256 } |
| 257 |
253 protected: | 258 protected: |
254 // These are called by Create/DestroyChannel above in order to create or | 259 // These are called by Create/DestroyChannel above in order to create or |
255 // destroy the appropriate type of channel. | 260 // destroy the appropriate type of channel. |
256 virtual TransportChannelImpl* CreateTransportChannel(int component) = 0; | 261 virtual TransportChannelImpl* CreateTransportChannel(int component) = 0; |
257 virtual void DestroyTransportChannel(TransportChannelImpl* channel) = 0; | 262 virtual void DestroyTransportChannel(TransportChannelImpl* channel) = 0; |
258 | 263 |
259 // The current local transport description, for use by derived classes | 264 // The current local transport description, for use by derived classes |
260 // when performing transport description negotiation. | 265 // when performing transport description negotiation. |
261 const TransportDescription* local_description() const { | 266 const TransportDescription* local_description() const { |
262 return local_description_.get(); | 267 return local_description_.get(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 322 |
318 ChannelMap channels_; | 323 ChannelMap channels_; |
319 | 324 |
320 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 325 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
321 }; | 326 }; |
322 | 327 |
323 | 328 |
324 } // namespace cricket | 329 } // namespace cricket |
325 | 330 |
326 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 331 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
OLD | NEW |