Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 #ifndef WEBRTC_CALL_SECONDARY_RTP_SINKS_CONTAINER_H_ | |
| 11 #define WEBRTC_CALL_SECONDARY_RTP_SINKS_CONTAINER_H_ | |
| 12 | |
| 13 namespace webrtc { | |
| 14 | |
| 15 class RtpPacketSinkInterface; | |
| 16 | |
| 17 // TODO(eladalon): !!! Find a better name? | |
| 18 | |
| 19 // By inheriting this class, a subclass of RtpPacketSinkInterface may provide | |
| 20 // secondary sinks the ability to register with it, receiving OnRtpPacket() | |
| 21 // called for them too over packets which get routed to the primary sink. | |
| 22 // One usage for this is FlexFEC, which needs to see the packets of the | |
| 23 // streams which it protects. | |
| 24 class SecondaryRtpSinksContainer { | |
|
danilchap
2017/07/19 12:07:25
I can see several implementation of this interface
eladalon
2017/07/21 14:42:08
This TODO is about this:
// TODO(eladalon): !!!
| |
| 25 public: | |
| 26 virtual ~SecondaryRtpSinksContainer() = default; | |
| 27 | |
| 28 virtual void AddSecondarySink(RtpPacketSinkInterface* sink) = 0; | |
| 29 virtual void RemoveSecondarySink(const RtpPacketSinkInterface* sink) = 0; | |
| 30 }; | |
| 31 | |
| 32 } // namespace webrtc | |
| 33 | |
| 34 #endif // WEBRTC_CALL_SECONDARY_RTP_SINKS_CONTAINER_H_ | |
| OLD | NEW |