Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: talk/app/webrtc/peerconnection.h

Issue 1413713003: Adding the ability to create an RtpSender without a track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing patch conflicts. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/mediastreamprovider.h ('k') | talk/app/webrtc/peerconnection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 rtc::scoped_refptr<StreamCollectionInterface> local_streams() override; 84 rtc::scoped_refptr<StreamCollectionInterface> local_streams() override;
85 rtc::scoped_refptr<StreamCollectionInterface> remote_streams() override; 85 rtc::scoped_refptr<StreamCollectionInterface> remote_streams() override;
86 bool AddStream(MediaStreamInterface* local_stream) override; 86 bool AddStream(MediaStreamInterface* local_stream) override;
87 void RemoveStream(MediaStreamInterface* local_stream) override; 87 void RemoveStream(MediaStreamInterface* local_stream) override;
88 88
89 virtual WebRtcSession* session() { return session_.get(); } 89 virtual WebRtcSession* session() { return session_.get(); }
90 90
91 rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender( 91 rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender(
92 AudioTrackInterface* track) override; 92 AudioTrackInterface* track) override;
93 93
94 rtc::scoped_refptr<RtpSenderInterface> CreateSender(
95 const std::string& kind) override;
96
94 std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders() 97 std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders()
95 const override; 98 const override;
96 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() 99 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers()
97 const override; 100 const override;
98 101
99 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( 102 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
100 const std::string& label, 103 const std::string& label,
101 const DataChannelInit* config) override; 104 const DataChannelInit* config) override;
102 bool GetStats(StatsObserver* observer, 105 bool GetStats(StatsObserver* observer,
103 webrtc::MediaStreamTrackInterface* track, 106 webrtc::MediaStreamTrackInterface* track,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void CreateAudioReceiver(MediaStreamInterface* stream, 183 void CreateAudioReceiver(MediaStreamInterface* stream,
181 AudioTrackInterface* audio_track, 184 AudioTrackInterface* audio_track,
182 uint32_t ssrc); 185 uint32_t ssrc);
183 void CreateVideoReceiver(MediaStreamInterface* stream, 186 void CreateVideoReceiver(MediaStreamInterface* stream,
184 VideoTrackInterface* video_track, 187 VideoTrackInterface* video_track,
185 uint32_t ssrc); 188 uint32_t ssrc);
186 void DestroyAudioReceiver(MediaStreamInterface* stream, 189 void DestroyAudioReceiver(MediaStreamInterface* stream,
187 AudioTrackInterface* audio_track); 190 AudioTrackInterface* audio_track);
188 void DestroyVideoReceiver(MediaStreamInterface* stream, 191 void DestroyVideoReceiver(MediaStreamInterface* stream,
189 VideoTrackInterface* video_track); 192 VideoTrackInterface* video_track);
190 void CreateAudioSender(MediaStreamInterface* stream,
191 AudioTrackInterface* audio_track,
192 uint32_t ssrc);
193 void CreateVideoSender(MediaStreamInterface* stream,
194 VideoTrackInterface* video_track,
195 uint32_t ssrc);
196 void DestroyAudioSender(MediaStreamInterface* stream, 193 void DestroyAudioSender(MediaStreamInterface* stream,
197 AudioTrackInterface* audio_track, 194 AudioTrackInterface* audio_track,
198 uint32_t ssrc); 195 uint32_t ssrc);
199 void DestroyVideoSender(MediaStreamInterface* stream, 196 void DestroyVideoSender(MediaStreamInterface* stream,
200 VideoTrackInterface* video_track); 197 VideoTrackInterface* video_track);
201 198
202 // Implements IceObserver 199 // Implements IceObserver
203 void OnIceConnectionChange(IceConnectionState new_state) override; 200 void OnIceConnectionChange(IceConnectionState new_state) override;
204 void OnIceGatheringChange(IceGatheringState new_state) override; 201 void OnIceGatheringChange(IceGatheringState new_state) override;
205 void OnIceCandidate(const IceCandidateInterface* candidate) override; 202 void OnIceCandidate(const IceCandidateInterface* candidate) override;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Notifications from WebRtcSession relating to BaseChannels. 318 // Notifications from WebRtcSession relating to BaseChannels.
322 void OnVoiceChannelDestroyed(); 319 void OnVoiceChannelDestroyed();
323 void OnVideoChannelDestroyed(); 320 void OnVideoChannelDestroyed();
324 void OnDataChannelCreated(); 321 void OnDataChannelCreated();
325 void OnDataChannelDestroyed(); 322 void OnDataChannelDestroyed();
326 // Called when the cricket::DataChannel receives a message indicating that a 323 // Called when the cricket::DataChannel receives a message indicating that a
327 // webrtc::DataChannel should be opened. 324 // webrtc::DataChannel should be opened.
328 void OnDataChannelOpenMessage(const std::string& label, 325 void OnDataChannelOpenMessage(const std::string& label,
329 const InternalDataChannelInit& config); 326 const InternalDataChannelInit& config);
330 327
328 RtpSenderInterface* FindSenderById(const std::string& id);
329
331 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator 330 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator
332 FindSenderForTrack(MediaStreamTrackInterface* track); 331 FindSenderForTrack(MediaStreamTrackInterface* track);
333 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator 332 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator
334 FindReceiverForTrack(MediaStreamTrackInterface* track); 333 FindReceiverForTrack(MediaStreamTrackInterface* track);
335 334
336 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); 335 TrackInfos* GetRemoteTracks(cricket::MediaType media_type);
337 TrackInfos* GetLocalTracks(cricket::MediaType media_type); 336 TrackInfos* GetLocalTracks(cricket::MediaType media_type);
338 const TrackInfo* FindTrackInfo(const TrackInfos& infos, 337 const TrackInfo* FindTrackInfo(const TrackInfos& infos,
339 const std::string& stream_label, 338 const std::string& stream_label,
340 const std::string track_id) const; 339 const std::string track_id) const;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // because its destruction fires signals (such as VoiceChannelDestroyed) 386 // because its destruction fires signals (such as VoiceChannelDestroyed)
388 // which will trigger some final actions in PeerConnection... 387 // which will trigger some final actions in PeerConnection...
389 rtc::scoped_ptr<WebRtcSession> session_; 388 rtc::scoped_ptr<WebRtcSession> session_;
390 // ... But stats_ depends on session_ so it should be destroyed even earlier. 389 // ... But stats_ depends on session_ so it should be destroyed even earlier.
391 rtc::scoped_ptr<StatsCollector> stats_; 390 rtc::scoped_ptr<StatsCollector> stats_;
392 }; 391 };
393 392
394 } // namespace webrtc 393 } // namespace webrtc
395 394
396 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_ 395 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/mediastreamprovider.h ('k') | talk/app/webrtc/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698