OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 } | 190 } |
191 virtual cricket::VideoChannel* video_channel() { | 191 virtual cricket::VideoChannel* video_channel() { |
192 return video_channel_.get(); | 192 return video_channel_.get(); |
193 } | 193 } |
194 virtual cricket::DataChannel* data_channel() { | 194 virtual cricket::DataChannel* data_channel() { |
195 return data_channel_.get(); | 195 return data_channel_.get(); |
196 } | 196 } |
197 | 197 |
198 cricket::BaseChannel* GetChannel(const std::string& content_name); | 198 cricket::BaseChannel* GetChannel(const std::string& content_name); |
199 | 199 |
200 void SetSdesPolicy(cricket::SecurePolicy secure_policy); | |
201 cricket::SecurePolicy SdesPolicy() const; | 200 cricket::SecurePolicy SdesPolicy() const; |
202 | 201 |
202 // Returns true if either DTLS or SDES is required by this session. | |
203 bool SecureRequired() const; | |
pthatcher1
2016/11/30 19:16:17
"SecureRequired" sounds funny, and the logic/meani
Taylor Brandstetter
2016/12/01 02:41:34
This is just the name we're using elsewhere, so I
| |
204 | |
203 // Get current ssl role from transport. | 205 // Get current ssl role from transport. |
204 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role); | 206 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role); |
205 | 207 |
206 // Get current SSL role for this channel's transport. | 208 // Get current SSL role for this channel's transport. |
207 // If |transport| is null, returns false. | 209 // If |transport| is null, returns false. |
208 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); | 210 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); |
209 | 211 |
210 void CreateOffer( | 212 void CreateOffer( |
211 CreateSessionDescriptionObserver* observer, | 213 CreateSessionDescriptionObserver* observer, |
212 const PeerConnectionInterface::RTCOfferAnswerOptions& options, | 214 const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 | 522 |
521 #ifdef HAVE_QUIC | 523 #ifdef HAVE_QUIC |
522 std::unique_ptr<QuicDataTransport> quic_data_transport_; | 524 std::unique_ptr<QuicDataTransport> quic_data_transport_; |
523 #endif // HAVE_QUIC | 525 #endif // HAVE_QUIC |
524 | 526 |
525 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 527 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
526 }; | 528 }; |
527 } // namespace webrtc | 529 } // namespace webrtc |
528 | 530 |
529 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 531 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
OLD | NEW |