Index: webrtc/p2p/rawudp/rawudptransport.cc |
diff --git a/webrtc/p2p/base/p2ptransport.cc b/webrtc/p2p/rawudp/rawudptransport.cc |
similarity index 54% |
copy from webrtc/p2p/base/p2ptransport.cc |
copy to webrtc/p2p/rawudp/rawudptransport.cc |
index 1ad2a6faa3fa9486c06be5d5441f83bab957fdf3..8a9f652b2a57e3e465ca1e1bceda60381bbfa503 100644 |
--- a/webrtc/p2p/base/p2ptransport.cc |
+++ b/webrtc/p2p/rawudp/rawudptransport.cc |
@@ -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,7 +8,7 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include "webrtc/p2p/base/p2ptransport.h" |
+#include "webrtc/p2p/rawudp/rawudptransport.h" |
#include <string> |
@@ -16,22 +16,23 @@ |
#include "webrtc/base/common.h" |
#include "webrtc/base/stringencode.h" |
#include "webrtc/base/stringutils.h" |
-#include "webrtc/p2p/base/p2ptransportchannel.h" |
+#include "webrtc/p2p/rawudp/rawudptransportchannel.h" |
namespace cricket { |
-P2PTransport::P2PTransport(const std::string& name, PortAllocator* allocator) |
+RawUdpTransport::RawUdpTransport(const std::string& name, |
+ PortAllocator* allocator) |
: Transport(name, allocator) {} |
-P2PTransport::~P2PTransport() { |
+RawUdpTransport::~RawUdpTransport() { |
DestroyAllChannels(); |
} |
-TransportChannelImpl* P2PTransport::CreateTransportChannel(int component) { |
- return new P2PTransportChannel(name(), component, port_allocator()); |
+TransportChannelImpl* RawUdpTransport::CreateTransportChannel(int component) { |
+ return new RawUdpTransportChannel(name(), component); |
} |
-void P2PTransport::DestroyTransportChannel(TransportChannelImpl* channel) { |
+void RawUdpTransport::DestroyTransportChannel(TransportChannelImpl* channel) { |
delete channel; |
} |