OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 // Notifications from WebRtcSession relating to BaseChannels. | 315 // Notifications from WebRtcSession relating to BaseChannels. |
316 void OnVoiceChannelDestroyed(); | 316 void OnVoiceChannelDestroyed(); |
317 void OnVideoChannelDestroyed(); | 317 void OnVideoChannelDestroyed(); |
318 void OnDataChannelCreated(); | 318 void OnDataChannelCreated(); |
319 void OnDataChannelDestroyed(); | 319 void OnDataChannelDestroyed(); |
320 // Called when the cricket::DataChannel receives a message indicating that a | 320 // Called when the cricket::DataChannel receives a message indicating that a |
321 // webrtc::DataChannel should be opened. | 321 // webrtc::DataChannel should be opened. |
322 void OnDataChannelOpenMessage(const std::string& label, | 322 void OnDataChannelOpenMessage(const std::string& label, |
323 const InternalDataChannelInit& config); | 323 const InternalDataChannelInit& config); |
| 324 void OnFirstMediaPacketReceived(); |
324 | 325 |
325 RtpSenderInterface* FindSenderById(const std::string& id); | 326 RtpSenderInterface* FindSenderById(const std::string& id); |
326 | 327 |
327 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator | 328 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator |
328 FindSenderForTrack(MediaStreamTrackInterface* track); | 329 FindSenderForTrack(MediaStreamTrackInterface* track); |
329 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator | 330 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator |
330 FindReceiverForTrack(MediaStreamTrackInterface* track); | 331 FindReceiverForTrack(MediaStreamTrackInterface* track); |
331 | 332 |
332 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); | 333 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); |
333 TrackInfos* GetLocalTracks(cricket::MediaType media_type); | 334 TrackInfos* GetLocalTracks(cricket::MediaType media_type); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // because its destruction fires signals (such as VoiceChannelDestroyed) | 387 // because its destruction fires signals (such as VoiceChannelDestroyed) |
387 // which will trigger some final actions in PeerConnection... | 388 // which will trigger some final actions in PeerConnection... |
388 rtc::scoped_ptr<WebRtcSession> session_; | 389 rtc::scoped_ptr<WebRtcSession> session_; |
389 // ... But stats_ depends on session_ so it should be destroyed even earlier. | 390 // ... But stats_ depends on session_ so it should be destroyed even earlier. |
390 rtc::scoped_ptr<StatsCollector> stats_; | 391 rtc::scoped_ptr<StatsCollector> stats_; |
391 }; | 392 }; |
392 | 393 |
393 } // namespace webrtc | 394 } // namespace webrtc |
394 | 395 |
395 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_ | 396 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_ |
OLD | NEW |