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

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

Issue 2377883003: First step in providing a UdpTransportChannel. (Closed)
Patch Set: Use only one socket inside UdpTransportChannel. Created 4 years, 2 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/BUILD.gn ('k') | webrtc/p2p/base/udptransport.cc » ('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/p2ptransport.h b/webrtc/p2p/base/udptransport.h
similarity index 56%
copy from webrtc/p2p/base/p2ptransport.h
copy to webrtc/p2p/base/udptransport.h
index d4da224f9793d79b41ff3364d7d684050dfc93ed..0587c11f1abbfa1f2764956f0c9410f522ee3641 100644
--- a/webrtc/p2p/base/p2ptransport.h
+++ b/webrtc/p2p/base/udptransport.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
+ * Copyright 2016 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
@@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_P2P_BASE_P2PTRANSPORT_H_
-#define WEBRTC_P2P_BASE_P2PTRANSPORT_H_
+#ifndef WEBRTC_P2P_BASE_UDPTRANSPORT_H_
+#define WEBRTC_P2P_BASE_UDPTRANSPORT_H_
#include <string>
@@ -18,22 +18,21 @@
namespace cricket {
-// Everything in this class should be called on the worker thread.
-class P2PTransport : public Transport {
+// Everything in this class should be called on the network thread.
+class UdpTransport : public Transport {
pthatcher1 2016/10/13 22:37:01 Can you remove this class from this CL? We can de
public:
- P2PTransport(const std::string& name, PortAllocator* allocator);
- virtual ~P2PTransport();
+ UdpTransport(const std::string& name, PortAllocator* allocator);
+ virtual ~UdpTransport();
protected:
- // Creates and destroys P2PTransportChannel.
virtual TransportChannelImpl* CreateTransportChannel(int component);
virtual void DestroyTransportChannel(TransportChannelImpl* channel);
- friend class P2PTransportChannel;
+ friend class UdpTransportChannel;
- RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransport);
+ RTC_DISALLOW_COPY_AND_ASSIGN(UdpTransport);
};
} // namespace cricket
-#endif // WEBRTC_P2P_BASE_P2PTRANSPORT_H_
+#endif // WEBRTC_P2P_BASE_UDPTRANSPORT_H_
« no previous file with comments | « webrtc/p2p/BUILD.gn ('k') | webrtc/p2p/base/udptransport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698