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

Side by Side Diff: webrtc/call/rtp_stream_receiver_controller.h

Issue 2993053002: Reland of SSRC and RSID may only refer to one sink each in RtpDemuxer (Closed)
Patch Set: Created 3 years, 4 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/call/rtp_rtcp_demuxer_helper.h ('k') | webrtc/call/rtp_stream_receiver_controller.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 (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 #ifndef WEBRTC_CALL_RTP_STREAM_RECEIVER_CONTROLLER_H_ 10 #ifndef WEBRTC_CALL_RTP_STREAM_RECEIVER_CONTROLLER_H_
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 RtpStreamReceiverController(); 32 RtpStreamReceiverController();
33 ~RtpStreamReceiverController() override; 33 ~RtpStreamReceiverController() override;
34 34
35 // Implements RtpStreamReceiverControllerInterface. 35 // Implements RtpStreamReceiverControllerInterface.
36 std::unique_ptr<RtpStreamReceiverInterface> CreateReceiver( 36 std::unique_ptr<RtpStreamReceiverInterface> CreateReceiver(
37 uint32_t ssrc, 37 uint32_t ssrc,
38 RtpPacketSinkInterface* sink) override; 38 RtpPacketSinkInterface* sink) override;
39 39
40 // Thread-safe wrappers for the corresponding RtpDemuxer methods. 40 // Thread-safe wrappers for the corresponding RtpDemuxer methods.
41 void AddSink(uint32_t ssrc, RtpPacketSinkInterface* sink) override; 41 bool AddSink(uint32_t ssrc, RtpPacketSinkInterface* sink) override;
42 size_t RemoveSink(const RtpPacketSinkInterface* sink) override; 42 size_t RemoveSink(const RtpPacketSinkInterface* sink) override;
43 43
44 // TODO(nisse): Not yet responsible for parsing. 44 // TODO(nisse): Not yet responsible for parsing.
45 bool OnRtpPacket(const RtpPacketReceived& packet); 45 bool OnRtpPacket(const RtpPacketReceived& packet);
46 46
47 private: 47 private:
48 class Receiver : public RtpStreamReceiverInterface { 48 class Receiver : public RtpStreamReceiverInterface {
49 public: 49 public:
50 Receiver(RtpStreamReceiverController* controller, 50 Receiver(RtpStreamReceiverController* controller,
51 uint32_t ssrc, 51 uint32_t ssrc,
(...skipping 11 matching lines...) Expand all
63 // to be called on the same thread, and OnRtpPacket to be called 63 // to be called on the same thread, and OnRtpPacket to be called
64 // by a single, but possibly distinct, thread. But applications not 64 // by a single, but possibly distinct, thread. But applications not
65 // using Call may have use threads differently. 65 // using Call may have use threads differently.
66 rtc::CriticalSection lock_; 66 rtc::CriticalSection lock_;
67 RtpDemuxer demuxer_ GUARDED_BY(&lock_); 67 RtpDemuxer demuxer_ GUARDED_BY(&lock_);
68 }; 68 };
69 69
70 } // namespace webrtc 70 } // namespace webrtc
71 71
72 #endif // WEBRTC_CALL_RTP_STREAM_RECEIVER_CONTROLLER_H_ 72 #endif // WEBRTC_CALL_RTP_STREAM_RECEIVER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/call/rtp_rtcp_demuxer_helper.h ('k') | webrtc/call/rtp_stream_receiver_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698