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

Side by Side Diff: webrtc/pc/peerconnection.h

Issue 2990683002: Add PeerConnectionObserver::OnRemoveTrack callback.
Patch Set: Created 3 years, 5 months 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 | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/pc/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 * 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Implements MessageHandler. 185 // Implements MessageHandler.
186 void OnMessage(rtc::Message* msg) override; 186 void OnMessage(rtc::Message* msg) override;
187 187
188 void CreateAudioReceiver(MediaStreamInterface* stream, 188 void CreateAudioReceiver(MediaStreamInterface* stream,
189 const std::string& track_id, 189 const std::string& track_id,
190 uint32_t ssrc); 190 uint32_t ssrc);
191 191
192 void CreateVideoReceiver(MediaStreamInterface* stream, 192 void CreateVideoReceiver(MediaStreamInterface* stream,
193 const std::string& track_id, 193 const std::string& track_id,
194 uint32_t ssrc); 194 uint32_t ssrc);
195 void DestroyReceiver(const std::string& track_id); 195 void DestroyReceiver(MediaStreamInterface* stream,
196 const std::string& track_id);
196 197
197 // May be called either by AddStream/RemoveStream, or when a track is 198 // May be called either by AddStream/RemoveStream, or when a track is
198 // added/removed from a stream previously added via AddStream. 199 // added/removed from a stream previously added via AddStream.
199 void AddAudioTrack(AudioTrackInterface* track, MediaStreamInterface* stream); 200 void AddAudioTrack(AudioTrackInterface* track, MediaStreamInterface* stream);
200 void RemoveAudioTrack(AudioTrackInterface* track, 201 void RemoveAudioTrack(AudioTrackInterface* track,
201 MediaStreamInterface* stream); 202 MediaStreamInterface* stream);
202 void AddVideoTrack(VideoTrackInterface* track, MediaStreamInterface* stream); 203 void AddVideoTrack(VideoTrackInterface* track, MediaStreamInterface* stream);
203 void RemoveVideoTrack(VideoTrackInterface* track, 204 void RemoveVideoTrack(VideoTrackInterface* track,
204 MediaStreamInterface* stream); 205 MediaStreamInterface* stream);
205 206
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>> 458 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>>
458 senders_; 459 senders_;
459 std::vector< 460 std::vector<
460 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> 461 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>>
461 receivers_; 462 receivers_;
462 }; 463 };
463 464
464 } // namespace webrtc 465 } // namespace webrtc
465 466
466 #endif // WEBRTC_PC_PEERCONNECTION_H_ 467 #endif // WEBRTC_PC_PEERCONNECTION_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/pc/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698