Index: webrtc/p2p/base/rawtransport.cc |
diff --git a/webrtc/p2p/base/rawtransport.cc b/webrtc/p2p/base/rawtransport.cc |
index cb700ae4a0f5a5f393427a9ef7a25ea5be61e35d..8ff00cd3e0bd4462d18b9e82bdb5003e128a2462 100644 |
--- a/webrtc/p2p/base/rawtransport.cc |
+++ b/webrtc/p2p/base/rawtransport.cc |
@@ -1,2 +1,43 @@ |
-// TODO(pthatcher): Remove this file once Chrome's build files no |
-// longer refer to it. |
+/* |
+ * Copyright 2004 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 |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#include <string> |
+ |
+#include "webrtc/p2p/base/rawtransport.h" |
+#include "webrtc/p2p/base/rawtransportchannel.h" |
+#include "webrtc/base/common.h" |
+ |
+#if defined(FEATURE_ENABLE_PSTN) |
+namespace cricket { |
+ |
+RawTransport::RawTransport(rtc::Thread* signaling_thread, |
+ rtc::Thread* worker_thread, |
+ const std::string& content_name, |
+ PortAllocator* allocator) |
+ : Transport(signaling_thread, worker_thread, |
+ content_name, NS_GINGLE_RAW, allocator) { |
+} |
+ |
+RawTransport::~RawTransport() { |
+ DestroyAllChannels(); |
+} |
+ |
+TransportChannelImpl* RawTransport::CreateTransportChannel(int component) { |
+ return new RawTransportChannel(content_name(), component, this, |
+ worker_thread(), |
+ port_allocator()); |
+} |
+ |
+void RawTransport::DestroyTransportChannel(TransportChannelImpl* channel) { |
+ delete channel; |
+} |
+ |
+} // namespace cricket |
+#endif // defined(FEATURE_ENABLE_PSTN) |