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

Unified Diff: webrtc/p2p/base/udptransport.h

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Add memcheck suppression for end-to-end tests. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/packettransportinternal.h ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « webrtc/p2p/base/packettransportinternal.h ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698