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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 const RtpParameters& parameters) override; | 264 const RtpParameters& parameters) override; |
265 | 265 |
266 // Implements DtmfProviderInterface. | 266 // Implements DtmfProviderInterface. |
267 virtual bool CanInsertDtmf(const std::string& track_id); | 267 virtual bool CanInsertDtmf(const std::string& track_id); |
268 virtual bool InsertDtmf(const std::string& track_id, | 268 virtual bool InsertDtmf(const std::string& track_id, |
269 int code, int duration); | 269 int code, int duration); |
270 virtual sigslot::signal0<>* GetOnDestroyedSignal(); | 270 virtual sigslot::signal0<>* GetOnDestroyedSignal(); |
271 | 271 |
272 // Implements DataChannelProviderInterface. | 272 // Implements DataChannelProviderInterface. |
273 bool SendData(const cricket::SendDataParams& params, | 273 bool SendData(const cricket::SendDataParams& params, |
274 const rtc::Buffer& payload, | 274 const rtc::CopyOnWriteBuffer& payload, |
275 cricket::SendDataResult* result) override; | 275 cricket::SendDataResult* result) override; |
276 bool ConnectDataChannel(DataChannel* webrtc_data_channel) override; | 276 bool ConnectDataChannel(DataChannel* webrtc_data_channel) override; |
277 void DisconnectDataChannel(DataChannel* webrtc_data_channel) override; | 277 void DisconnectDataChannel(DataChannel* webrtc_data_channel) override; |
278 void AddSctpDataStream(int sid) override; | 278 void AddSctpDataStream(int sid) override; |
279 void RemoveSctpDataStream(int sid) override; | 279 void RemoveSctpDataStream(int sid) override; |
280 bool ReadyToSendData() const override; | 280 bool ReadyToSendData() const override; |
281 | 281 |
282 // Returns stats for all channels of all transports. | 282 // Returns stats for all channels of all transports. |
283 // This avoids exposing the internal structures used to track them. | 283 // This avoids exposing the internal structures used to track them. |
284 virtual bool GetTransportStats(SessionStats* stats); | 284 virtual bool GetTransportStats(SessionStats* stats); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 // Helper methods to create media channels. | 407 // Helper methods to create media channels. |
408 bool CreateVoiceChannel(const cricket::ContentInfo* content); | 408 bool CreateVoiceChannel(const cricket::ContentInfo* content); |
409 bool CreateVideoChannel(const cricket::ContentInfo* content); | 409 bool CreateVideoChannel(const cricket::ContentInfo* content); |
410 bool CreateDataChannel(const cricket::ContentInfo* content); | 410 bool CreateDataChannel(const cricket::ContentInfo* content); |
411 | 411 |
412 // Listens to SCTP CONTROL messages on unused SIDs and process them as OPEN | 412 // Listens to SCTP CONTROL messages on unused SIDs and process them as OPEN |
413 // messages. | 413 // messages. |
414 void OnDataChannelMessageReceived(cricket::DataChannel* channel, | 414 void OnDataChannelMessageReceived(cricket::DataChannel* channel, |
415 const cricket::ReceiveDataParams& params, | 415 const cricket::ReceiveDataParams& params, |
416 const rtc::Buffer& payload); | 416 const rtc::CopyOnWriteBuffer& payload); |
417 | 417 |
418 std::string BadStateErrMsg(State state); | 418 std::string BadStateErrMsg(State state); |
419 void SetIceConnectionState(PeerConnectionInterface::IceConnectionState state); | 419 void SetIceConnectionState(PeerConnectionInterface::IceConnectionState state); |
420 void SetIceConnectionReceiving(bool receiving); | 420 void SetIceConnectionReceiving(bool receiving); |
421 | 421 |
422 bool ValidateBundleSettings(const cricket::SessionDescription* desc); | 422 bool ValidateBundleSettings(const cricket::SessionDescription* desc); |
423 bool HasRtcpMuxEnabled(const cricket::ContentInfo* content); | 423 bool HasRtcpMuxEnabled(const cricket::ContentInfo* content); |
424 // Below methods are helper methods which verifies SDP. | 424 // Below methods are helper methods which verifies SDP. |
425 bool ValidateSessionDescription(const SessionDescriptionInterface* sdesc, | 425 bool ValidateSessionDescription(const SessionDescriptionInterface* sdesc, |
426 cricket::ContentSource source, | 426 cricket::ContentSource source, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 PeerConnectionInterface::BundlePolicy bundle_policy_; | 513 PeerConnectionInterface::BundlePolicy bundle_policy_; |
514 | 514 |
515 // Declares the RTCP mux policy for the WebRTCSession. | 515 // Declares the RTCP mux policy for the WebRTCSession. |
516 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 516 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
517 | 517 |
518 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 518 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
519 }; | 519 }; |
520 } // namespace webrtc | 520 } // namespace webrtc |
521 | 521 |
522 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 522 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
OLD | NEW |