OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 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_API_RTPTRANSPORTCONTROLLERINTERFACE_H_ | |
12 #define WEBRTC_API_RTPTRANSPORTCONTROLLERINTERFACE_H_ | |
13 | |
14 #include <vector> | |
15 | |
16 #include "webrtc/api/rtptransportinterface.h" | |
17 | |
18 namespace webrtc { | |
19 | |
20 class RtpTransportControllerShim; | |
21 | |
22 // Used to group RTP transports for the purpose of sharing bandwidth estimation | |
23 // and other things that exist on a "per-call" basis. | |
pthatcher1
2017/02/08 01:33:49
I think a better way to phrase this (instead of "p
Taylor Brandstetter
2017/02/10 00:19:45
Done.
| |
24 // | |
25 // RtpTransports are associated with this controller when they're created, by | |
26 // passing the controller into OrtcFactory's relevant "CreateRtpTransport" | |
27 // method. When they're destroyed, they're automatically removed. | |
pthatcher1
2017/02/08 01:33:49
removed == not associated?
Might want to point out
| |
28 // | |
29 // This is the RTP equivalent of "IceTransportController". | |
pthatcher1
2017/02/08 01:33:49
I'm not sure what value this comment brings to som
Taylor Brandstetter
2017/02/10 00:19:45
If you're familiar with the ORTC object heirarchy,
| |
30 class RtpTransportControllerInterface { | |
31 public: | |
32 virtual ~RtpTransportControllerInterface() {} | |
33 | |
34 // Returns all transports that are controlled by this controller and | |
35 // haven't yet been destroyed. | |
36 virtual std::vector<RtpTransportInterface*> GetTransports() const = 0; | |
37 | |
38 protected: | |
39 // Only for internal use. | |
40 // Returns a pointer to the internal (non-public) interface. | |
41 virtual RtpTransportControllerShim* GetInternal() = 0; | |
pthatcher1
2017/02/08 01:33:49
I'm not a fan of "XShim". Why not "XInternal"?
Taylor Brandstetter
2017/02/10 00:19:45
There needs to be some name that differentiates th
| |
42 | |
43 // Classes that can use this internal interface. | |
44 friend class RtpTransportShim; | |
45 }; | |
46 | |
47 } // namespace webrtc | |
48 | |
49 #endif // WEBRTC_API_RTPTRANSPORTCONTROLLERINTERFACE_H_ | |
OLD | NEW |