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 | |
| 11 #ifndef WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
| 12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
| 13 | |
| 14 namespace webrtc { | |
| 15 | |
| 16 class CongestionController; | |
| 17 class Module; | |
| 18 class PacketRouter; | |
| 19 class RtpPacketSender; | |
| 20 class TransportFeedbackObserver; | |
| 21 class VieRemb; | |
| 22 | |
| 23 // An RtpTransportController should own everything related to the RTP | |
| 24 // transport to/from a remote endpoint. We should have separate | |
| 25 // interfaces for send and receive side, even if they are implemented | |
| 26 // by the same class. This is an ongoing refactoring project. At some | |
| 27 // point, this class should be promoted to a public api under | |
| 28 // webrtc/api/rtp/. | |
| 29 // | |
| 30 // For a start, this object is just a collection of the objects needed | |
| 31 // by the VideoSendStream constructor. The plan is to move ownership | |
| 32 // of all RTP-related objects here, and add methods to create per-ssrc | |
| 33 // objects which would then be passed to VideoSendStream. | |
|
danilchap
2017/03/14 17:59:14
May be add a comment that direct accessors (remb()
nisse-webrtc
2017/03/15 08:06:23
Done.
| |
| 34 // | |
| 35 // This should also have a reference to the underlying | |
| 36 // webrtc::Transport. Currently, webrtc::Transport is implemented by | |
|
Taylor Brandstetter
2017/03/14 23:08:35
"webrtc::Transport(s)", since there may be multipl
nisse-webrtc
2017/03/15 08:06:23
Updated the comment. On the underlying question, I
Taylor Brandstetter
2017/03/15 21:39:07
I think we may be using the same name (RtpTranspor
| |
| 37 // WebRtcVideoChannel2 and WebRtcVoiceMediaChannel, and owned by | |
| 38 // WebrtcSession. Video and audio always uses different transport | |
| 39 // objects, even in the common case where they are bundeled over the | |
|
Taylor Brandstetter
2017/03/14 23:08:35
"bundled"
nisse-webrtc
2017/03/15 08:06:23
Done.
| |
| 40 // same underlying transport. | |
| 41 // | |
| 42 // Extracting the logic of the webrtc::Transport from BaseChannel and | |
| 43 // subclasses into a separate class seems to be a prerequesite for | |
| 44 // moving the transport here. | |
| 45 class RtpTransportControllerSendInterface { | |
| 46 public: | |
| 47 virtual ~RtpTransportControllerSendInterface() {} | |
| 48 virtual VieRemb* remb() = 0; | |
| 49 virtual PacketRouter* packet_router() = 0; | |
| 50 | |
| 51 // Currently returning the same pointer, but with different types. | |
| 52 virtual CongestionController* congestion_controller() = 0; | |
| 53 virtual TransportFeedbackObserver* transport_feedback_observer() = 0; | |
| 54 | |
| 55 virtual RtpPacketSender* packet_sender() = 0; | |
| 56 }; | |
| 57 | |
| 58 } // namespace webrtc | |
| 59 | |
| 60 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
| OLD | NEW |