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

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

Issue 1246913005: TransportController refactoring (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Set media engine on voice channel Created 5 years, 4 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 1bf77b6566a44cf958aa38e9535a1fd098f4cd43..d34dd17b60bbc96223935d8cf6ba752c5f30cc9e 100644
--- a/webrtc/p2p/base/dtlstransportchannel.h
+++ b/webrtc/p2p/base/dtlstransportchannel.h
@@ -27,7 +27,7 @@ namespace cricket {
// the bottom and a StreamInterface on the top.
class StreamInterfaceChannel : public rtc::StreamInterface {
public:
- StreamInterfaceChannel(TransportChannel* channel);
+ explicit StreamInterfaceChannel(TransportChannel* channel);
// Push in a packet; this gets pulled out from Read().
bool OnPacketReceived(const char* data, size_t size);
@@ -197,9 +197,10 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl {
virtual void Connect();
- virtual void OnSignalingReady() {
- channel_->OnSignalingReady();
+ virtual GatheringState gathering_state() const {
+ return channel_->gathering_state();
}
+
virtual void OnCandidate(const Candidate& candidate) {
channel_->OnCandidate(candidate);
}
@@ -222,9 +223,8 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl {
bool SetupDtls();
bool MaybeStartDtls();
bool HandleDtlsPacket(const char* data, size_t size);
- void OnRequestSignaling(TransportChannelImpl* channel);
- void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c);
- void OnCandidatesAllocationDone(TransportChannelImpl* channel);
+ void OnGatheringState(TransportChannelImpl* channel);
+ void OnCandidateGathered(TransportChannelImpl* channel, const Candidate& c);
void OnRoleConflict(TransportChannelImpl* channel);
void OnRouteChange(TransportChannel* channel, const Candidate& candidate);
void OnConnectionRemoved(TransportChannelImpl* channel);

Powered by Google App Engine
This is Rietveld 408576698