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 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | |
|
danilchap
2017/02/09 09:04:04
why include congestion controller and forward decl
nisse-webrtc
2017/02/09 12:56:43
Good catch. Dropping forward declaration (include
| |
| 15 | |
| 16 namespace webrtc { | |
| 17 | |
| 18 class VieRemb; | |
| 19 class PacketRouter; | |
| 20 class CongestionController; | |
| 21 | |
| 22 // An RtpTransportController should own everything related to the RTP | |
| 23 // transport to/from a remote endpoint. We should have separate | |
| 24 // interfaces for send and receive sice, even if they are implemented | |
| 25 // by the same class. This is on ongoing refactoring project. At some | |
| 26 // point, this class should be promoted to a public api under | |
| 27 // webrtc/api/rtp/. | |
| 28 // | |
| 29 // For a start, this object is just a collection of the objects needed | |
| 30 // by the VideoSendStream constructor. The plan is to move ownership | |
| 31 // of all RTP-related objects here, and add methods to create per-ssrc | |
|
danilchap
2017/02/09 09:04:04
probably per-(media)-stream instead of per-ssrc:
D
nisse-webrtc
2017/02/09 12:56:43
The plan is that VideoSendStream should create one
| |
| 32 // objects which would then be passed to VideoSendStream. | |
| 33 // | |
| 34 // This should also have a reference to the underlying | |
| 35 // webrtc::Transport. Currently, webrtc::Transport is implemented by | |
| 36 // WebRtcVideoChannel2 and WebRtcVoiceMediaChannel, and owned by | |
| 37 // WebrtcSession. It's unclear why video and audio uses different | |
| 38 // transports, possibly because it is implemented by BaseChannel and | |
| 39 // there are other reasons for BaseChannel subclasses specific for | |
| 40 // video and audio. | |
| 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. As an interim step, using this class for | |
| 45 // video only, we could consider passing the WebRtcVideoChannel2 | |
| 46 // transport here. | |
| 47 class RtpTransportControllerSenderInterface { | |
| 48 public: | |
| 49 virtual ~RtpTransportControllerSenderInterface() {} | |
| 50 virtual VieRemb* remb() = 0; | |
| 51 virtual PacketRouter* packet_router() = 0; | |
| 52 virtual CongestionController* congestion_controller() = 0; | |
| 53 }; | |
| 54 | |
| 55 } // namespace webrtc | |
| 56 | |
| 57 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
| OLD | NEW |