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

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

Issue 2886993005: Introduce RtpStreamReceiver and RtpStreamReceiverControllerInterface. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
(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_RTP_TRANSPORT_CONTROLLER_RECEIVE_H_
11 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_RECEIVE_H_
12
13 #include <memory>
14
15 #include "webrtc/base/array_view.h"
16
17 // For DeliveryStatus.
18 // TODO(nisse): This file ought to not depend on call.
19 #include "webrtc/call/call.h"
20
21 #include "webrtc/call/rtp_demuxer.h"
22 #include "webrtc/call/rtp_transport_controller_receive_interface.h"
23
24 namespace webrtc {
25
26 class ReceiveSideCongestionController;
27 class RtpPacketReceived;
28
29 // This class represents the RTP receive parsing and demuxing, for a
30 // single RTP session. It isn't thread aware, leaving responsibility
31 // of multithreading issues to the user of this class. TODO(nisse):
32 // Add RTCP processing, we should aim to terminate RTCP and not leave
33 // any RTCP processing to individual receive streams. TODO(nisse):
34 // Extract packet processing, including parsing and demuxing, into a
35 // separate RtpSessionReceiver classes.
pthatcher1 2017/05/17 23:24:53 Shouldn't TODOs be on their own line?
nisse-webrtc 2017/05/18 08:45:43 Will fix in next ps.
36 class RtpTransportControllerReceive
37 : public RtpTransportControllerReceiveInterface {
38 public:
39 // Implements RtpTransportControllerReceiveInterface.
40 std::unique_ptr<RtpTransportReceiver> CreateReceiver(
41 uint32_t ssrc,
42 RtpPacketSinkInterface* sink) override;
43
44 // TODO(nisse): Not yet responsible for parsing.
45 bool OnRtpPacket(const RtpPacketReceived& packet);
46
47 private:
48 class Receiver : public RtpTransportReceiver {
49 public:
50 Receiver(RtpDemuxer* demuxer_, uint32_t ssrc, RtpPacketSinkInterface* sink);
51
52 ~Receiver();
53
54 private:
55 RtpDemuxer* demuxer_;
56 RtpPacketSinkInterface* sink_;
57 };
58
59 RtpDemuxer demuxer_;
60 };
danilchap 2017/05/19 15:37:43 what is preventing putting ReceiveSideCC into this
nisse-webrtc 2017/05/22 07:09:37 Two things at the moment: 1. The logic prior to c
61
62 } // namespace webrtc
63
64 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_RECEIVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698