| Index: webrtc/p2p/base/udptransport.h
|
| diff --git a/webrtc/p2p/base/udptransport.h b/webrtc/p2p/base/udptransport.h
|
| index e8bd49382f22958f588d165a81c791a438e4efbe..1cf8e424dbf6de0fdfebbba644e21370181dd99a 100644
|
| --- a/webrtc/p2p/base/udptransport.h
|
| +++ b/webrtc/p2p/base/udptransport.h
|
| @@ -14,7 +14,7 @@
|
| #include <memory>
|
| #include <string>
|
|
|
| -#include "webrtc/api/udptransportinterface.h"
|
| +#include "webrtc/api/ortc/udptransportinterface.h"
|
| #include "webrtc/base/asyncpacketsocket.h" // For PacketOptions.
|
| #include "webrtc/base/optional.h"
|
| #include "webrtc/base/thread_checker.h"
|
| @@ -31,8 +31,8 @@ namespace cricket {
|
|
|
| // Implementation of UdpTransportInterface.
|
| // Used by OrtcFactory.
|
| -class UdpTransport : public webrtc::UdpTransportInterface,
|
| - public rtc::PacketTransportInternal {
|
| +class UdpTransport : public rtc::PacketTransportInternal,
|
| + public webrtc::UdpTransportInterface {
|
| public:
|
| // |transport_name| is only used for identification/logging.
|
| // |socket| must be non-null.
|
| @@ -64,6 +64,9 @@ class UdpTransport : public webrtc::UdpTransportInterface,
|
|
|
| int GetError() override { return send_error_; }
|
|
|
| + protected:
|
| + PacketTransportInternal* GetInternal() override { return this; }
|
| +
|
| private:
|
| void OnSocketReadPacket(rtc::AsyncPacketSocket* socket,
|
| const char* data,
|
| @@ -80,6 +83,7 @@ class UdpTransport : public webrtc::UdpTransportInterface,
|
| rtc::SocketAddress remote_address_;
|
| rtc::ThreadChecker network_thread_checker_;
|
| };
|
| +
|
| } // namespace cricket
|
|
|
| #endif // WEBRTC_P2P_BASE_UDPTRANSPORT_H_
|
|
|