| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Implements MessageHandler. | 167 // Implements MessageHandler. |
| 168 void OnMessage(rtc::Message* msg) override; | 168 void OnMessage(rtc::Message* msg) override; |
| 169 | 169 |
| 170 void CreateAudioReceiver(MediaStreamInterface* stream, | 170 void CreateAudioReceiver(MediaStreamInterface* stream, |
| 171 const std::string& track_id, | 171 const std::string& track_id, |
| 172 uint32_t ssrc); | 172 uint32_t ssrc); |
| 173 | 173 |
| 174 void CreateVideoReceiver(MediaStreamInterface* stream, | 174 void CreateVideoReceiver(MediaStreamInterface* stream, |
| 175 const std::string& track_id, | 175 const std::string& track_id, |
| 176 uint32_t ssrc); | 176 uint32_t ssrc); |
| 177 void StopReceivers(cricket::MediaType media_type); | |
| 178 void DestroyReceiver(const std::string& track_id); | 177 void DestroyReceiver(const std::string& track_id); |
| 179 void DestroyAudioSender(MediaStreamInterface* stream, | 178 void DestroyAudioSender(MediaStreamInterface* stream, |
| 180 AudioTrackInterface* audio_track, | 179 AudioTrackInterface* audio_track, |
| 181 uint32_t ssrc); | 180 uint32_t ssrc); |
| 182 void DestroyVideoSender(MediaStreamInterface* stream, | 181 void DestroyVideoSender(MediaStreamInterface* stream, |
| 183 VideoTrackInterface* video_track); | 182 VideoTrackInterface* video_track); |
| 184 | 183 |
| 185 // Implements IceObserver | 184 // Implements IceObserver |
| 186 void OnIceConnectionChange(IceConnectionState new_state) override; | 185 void OnIceConnectionChange(IceConnectionState new_state) override; |
| 187 void OnIceGatheringChange(IceGatheringState new_state) override; | 186 void OnIceGatheringChange(IceGatheringState new_state) override; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 const std::string& label, | 317 const std::string& label, |
| 319 const InternalDataChannelInit* config); | 318 const InternalDataChannelInit* config); |
| 320 | 319 |
| 321 // Checks if any data channel has been added. | 320 // Checks if any data channel has been added. |
| 322 bool HasDataChannels() const; | 321 bool HasDataChannels() const; |
| 323 | 322 |
| 324 void AllocateSctpSids(rtc::SSLRole role); | 323 void AllocateSctpSids(rtc::SSLRole role); |
| 325 void OnSctpDataChannelClosed(DataChannel* channel); | 324 void OnSctpDataChannelClosed(DataChannel* channel); |
| 326 | 325 |
| 327 // Notifications from WebRtcSession relating to BaseChannels. | 326 // Notifications from WebRtcSession relating to BaseChannels. |
| 327 void OnVoiceChannelCreated(); |
| 328 void OnVoiceChannelDestroyed(); | 328 void OnVoiceChannelDestroyed(); |
| 329 void OnVideoChannelCreated(); |
| 329 void OnVideoChannelDestroyed(); | 330 void OnVideoChannelDestroyed(); |
| 330 void OnDataChannelCreated(); | 331 void OnDataChannelCreated(); |
| 331 void OnDataChannelDestroyed(); | 332 void OnDataChannelDestroyed(); |
| 332 // Called when the cricket::DataChannel receives a message indicating that a | 333 // Called when the cricket::DataChannel receives a message indicating that a |
| 333 // webrtc::DataChannel should be opened. | 334 // webrtc::DataChannel should be opened. |
| 334 void OnDataChannelOpenMessage(const std::string& label, | 335 void OnDataChannelOpenMessage(const std::string& label, |
| 335 const InternalDataChannelInit& config); | 336 const InternalDataChannelInit& config); |
| 336 | 337 |
| 337 RtpSenderInternal* FindSenderById(const std::string& id); | 338 RtpSenderInternal* FindSenderById(const std::string& id); |
| 338 | 339 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> | 409 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> |
| 409 receivers_; | 410 receivers_; |
| 410 | 411 |
| 411 std::unique_ptr<WebRtcSession> session_; | 412 std::unique_ptr<WebRtcSession> session_; |
| 412 std::unique_ptr<StatsCollector> stats_; | 413 std::unique_ptr<StatsCollector> stats_; |
| 413 }; | 414 }; |
| 414 | 415 |
| 415 } // namespace webrtc | 416 } // namespace webrtc |
| 416 | 417 |
| 417 #endif // WEBRTC_API_PEERCONNECTION_H_ | 418 #endif // WEBRTC_API_PEERCONNECTION_H_ |
| OLD | NEW |