| Index: webrtc/p2p/base/rawtransport.h
|
| diff --git a/webrtc/p2p/base/rawtransport.h b/webrtc/p2p/base/rawtransport.h
|
| index cb700ae4a0f5a5f393427a9ef7a25ea5be61e35d..065dc0e25771636506498e21fd7d3b2bd6e421f0 100644
|
| --- a/webrtc/p2p/base/rawtransport.h
|
| +++ b/webrtc/p2p/base/rawtransport.h
|
| @@ -1,2 +1,46 @@
|
| -// 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.
|
| + */
|
| +
|
| +#ifndef WEBRTC_P2P_BASE_RAWTRANSPORT_H_
|
| +#define WEBRTC_P2P_BASE_RAWTRANSPORT_H_
|
| +
|
| +#include <string>
|
| +#include "webrtc/p2p/base/transport.h"
|
| +
|
| +#if defined(FEATURE_ENABLE_PSTN)
|
| +namespace cricket {
|
| +
|
| +// Implements a transport that only sends raw packets, no STUN. As a result,
|
| +// it cannot do pings to determine connectivity, so it only uses a single port
|
| +// that it thinks will work.
|
| +class RawTransport : public Transport {
|
| + public:
|
| + RawTransport(rtc::Thread* signaling_thread,
|
| + rtc::Thread* worker_thread,
|
| + const std::string& content_name,
|
| + PortAllocator* allocator);
|
| + virtual ~RawTransport();
|
| +
|
| + protected:
|
| + // Creates and destroys raw channels.
|
| + virtual TransportChannelImpl* CreateTransportChannel(int component);
|
| + virtual void DestroyTransportChannel(TransportChannelImpl* channel);
|
| +
|
| + private:
|
| + friend class RawTransportChannel; // For ParseAddress.
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(RawTransport);
|
| +};
|
| +
|
| +} // namespace cricket
|
| +
|
| +#endif // defined(FEATURE_ENABLE_PSTN)
|
| +
|
| +#endif // WEBRTC_P2P_BASE_RAWTRANSPORT_H_
|
|
|