Index: webrtc/p2p/base/dtlstransportchannel.h |
diff --git a/webrtc/p2p/base/dtlstransportchannel.h b/webrtc/p2p/base/dtlstransportchannel.h |
index 955b963a3657a1efc7436e4347158b02e7e112e2..f396a57d30ede0a5b9ab4042751459400d7aaa4d 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel.h |
+++ b/webrtc/p2p/base/dtlstransportchannel.h |
@@ -82,10 +82,8 @@ class StreamInterfaceChannel : public rtc::StreamInterface { |
class DtlsTransportChannelWrapper : public TransportChannelImpl { |
public: |
// The parameters here are: |
- // transport -- the DtlsTransport that created us |
// channel -- the TransportChannel we are wrapping |
- DtlsTransportChannelWrapper(Transport* transport, |
- TransportChannelImpl* channel); |
+ explicit DtlsTransportChannelWrapper(TransportChannelImpl* channel); |
~DtlsTransportChannelWrapper() override; |
void SetIceRole(IceRole role) override { channel_->SetIceRole(role); } |
@@ -159,8 +157,6 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl { |
} |
// TransportChannelImpl calls. |
- Transport* GetTransport() override { return transport_; } |
- |
TransportChannelState GetState() const override { |
return channel_->GetState(); |
} |
@@ -218,9 +214,8 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl { |
void OnConnectionRemoved(TransportChannelImpl* channel); |
void Reconnect(); |
- Transport* transport_; // The transport_ that created us. |
rtc::Thread* worker_thread_; // Everything should occur on this thread. |
- // Underlying channel, owned by transport_. |
+ // Underlying channel, not owned by this class. |
TransportChannelImpl* const channel_; |
rtc::scoped_ptr<rtc::SSLStreamAdapter> dtls_; // The DTLS stream |
StreamInterfaceChannel* downward_; // Wrapper for channel_, owned by dtls_. |