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

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

Issue 2416023002: Introduce rtc::PacketTransportInterface and let cricket::TransportChannel inherit. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « no previous file | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/dtlstransportchannel.h
diff --git a/webrtc/p2p/base/dtlstransportchannel.h b/webrtc/p2p/base/dtlstransportchannel.h
index 81802fd21d4e1508c2d9364f0f397004a08593e0..aac89c9f9fbe13533bfb4a93e7e9396e2f7f3a0f 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 {
+class PacketTransportInterface;
+}
+
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::PacketTransportInterface* transport);
+ void OnReadPacket(rtc::PacketTransportInterface* transport,
+ const char* data,
+ size_t size,
+ const rtc::PacketTime& packet_time,
+ int flags);
+ void OnSentPacket(rtc::PacketTransportInterface* transport,
const rtc::SentPacket& sent_packet);
- void OnReadyToSend(TransportChannel* channel);
+ void OnReadyToSend(rtc::PacketTransportInterface* transport);
void OnReceivingState(TransportChannel* channel);
void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err);
bool SetupDtls();
« no previous file with comments | « no previous file | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698