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

Unified Diff: webrtc/p2p/base/dtlstransportchannel.h

Issue 2416023002: Introduce rtc::PacketTransportInterface and let cricket::TransportChannel inherit. (Closed)
Patch Set: Resolve unused variable issue in release build. 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/base/dtlstransportchannel.h
diff --git a/webrtc/p2p/base/dtlstransportchannel.h b/webrtc/p2p/base/dtlstransportchannel.h
index 5ab3dca77100ca241f17615074c55fa4e22c98fc..9c3a04b657507d759b1735544ebb0a7a4d627a7a 100644
--- a/webrtc/p2p/base/dtlstransportchannel.h
+++ b/webrtc/p2p/base/dtlstransportchannel.h
@@ -22,6 +22,10 @@
#include "webrtc/base/sslstreamadapter.h"
#include "webrtc/base/stream.h"
+namespace rtc {
+struct PacketTransport;
+}
+
namespace cricket {
// A bridge between a packet-oriented/channel-type interface on
@@ -203,12 +207,15 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl {
bool IsDtlsConnected();
private:
- void OnWritableState(TransportChannel* channel);
- void OnReadPacket(TransportChannel* channel, const char* data, size_t size,
- const rtc::PacketTime& packet_time, int flags);
- void OnSentPacket(TransportChannel* channel,
+ void OnWritableState(rtc::PacketTransport* pt);
+ void OnReadPacket(rtc::PacketTransport* pt,
+ const char* data,
+ size_t size,
+ const rtc::PacketTime& packet_time,
+ int flags);
+ void OnSentPacket(rtc::PacketTransport* pt,
const rtc::SentPacket& sent_packet);
- void OnReadyToSend(TransportChannel* channel);
+ void OnReadyToSend(rtc::PacketTransport* pt);
pthatcher1 2016/10/13 20:26:37 Can you call these "transport" instead of "pt"? "
johan 2016/10/14 16:09:33 Done.
void OnReceivingState(TransportChannel* channel);
void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err);
bool SetupDtls();

Powered by Google App Engine
This is Rietveld 408576698