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

Unified Diff: webrtc/p2p/rawudp/rawudptransport.cc

Issue 2377883003: First step in providing a UdpTransportChannel. (Closed)
Patch Set: Remove SetRemoteAddrAndPort() method. 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698