mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-15 06:40:43 +01:00

The TransportController will be replaced by the JsepTransportController and JsepTransport will be replace be JsepTransport2. The JsepTransportController will take the entire SessionDescription and handle the RtcpMux, Sdes and BUNDLE internally. The ownership model is also changed. The P2P layer transports are not ref-counted and will be owned by the JsepTransport2. In ORTC aspect, RtpTransportAdapter is now a wrapper over RtpTransport or SrtpTransport and it implements the public and internal interface by calling the transport underneath. Bug: webrtc:8587 Change-Id: Ia7fa61288a566f211f8560072ea0eecaf19e48df Reviewed-on: https://webrtc-review.googlesource.com/59586 Commit-Queue: Zhi Huang <zhihuang@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22693}
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/*
|
|
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_ORTC_PACKETTRANSPORTINTERFACE_H_
|
|
#define API_ORTC_PACKETTRANSPORTINTERFACE_H_
|
|
|
|
namespace rtc {
|
|
|
|
class PacketTransportInternal;
|
|
|
|
} // namespace rtc
|
|
|
|
namespace webrtc {
|
|
|
|
// Base class for different packet-based transports.
|
|
class PacketTransportInterface {
|
|
public:
|
|
virtual ~PacketTransportInterface() {}
|
|
|
|
protected:
|
|
// Only for internal use. Returns a pointer to an internal interface, for use
|
|
// by the implementation.
|
|
virtual rtc::PacketTransportInternal* GetInternal() = 0;
|
|
|
|
// Classes that can use this internal interface.
|
|
friend class RtpTransportControllerAdapter;
|
|
friend class RtpTransportAdapter;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_ORTC_PACKETTRANSPORTINTERFACE_H_
|