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

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

Issue 1246913005: TransportController refactoring (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 9c14314135663d58d5edc6a3109cb2bf06c56859..8195eee53a3fddd3b613c04c0db6b60f371b4cbf 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);
@@ -191,11 +191,12 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl {
virtual void Connect();
- virtual void OnSignalingReady() {
- channel_->OnSignalingReady();
+ virtual IceGatheringState gathering_state() const {
+ return channel_->gathering_state();
}
- virtual void OnCandidate(const Candidate& candidate) {
- channel_->OnCandidate(candidate);
+
+ virtual void AddRemoteCandidate(const Candidate& candidate) {
+ channel_->AddRemoteCandidate(candidate);
}
void SetReceivingTimeout(int receiving_timeout_ms) {
@@ -216,9 +217,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