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

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

Issue 1246913005: TransportController refactoring (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: minor cleanup 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/p2ptransportchannel.h
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
index 926de95a3bffed498bb8291ed4bd80a99cb048e3..933ea46d86bc0d0364e1f68ecf2afc82b92fc350 100644
--- a/webrtc/p2p/base/p2ptransportchannel.h
+++ b/webrtc/p2p/base/p2ptransportchannel.h
@@ -54,7 +54,7 @@ class P2PTransportChannel : public TransportChannelImpl,
P2PTransportChannel(const std::string& content_name,
int component,
P2PTransport* transport,
- PortAllocator *allocator);
+ PortAllocator* allocator);
virtual ~P2PTransportChannel();
// From TransportChannelImpl:
@@ -71,7 +71,9 @@ class P2PTransportChannel : public TransportChannelImpl,
const std::string& ice_pwd);
virtual void SetRemoteIceMode(IceMode mode);
virtual void Connect();
- virtual void OnSignalingReady();
+ virtual Transport::CandidateGatheringState candidate_gathering_state() const {
+ return candidate_gathering_state_;
+ }
virtual void OnCandidate(const Candidate& candidate);
// Sets the receiving timeout in milliseconds.
// This also sets the check_receiving_delay proportionally.
@@ -222,10 +224,9 @@ class P2PTransportChannel : public TransportChannelImpl,
void OnCheckReceiving();
P2PTransport* transport_;
- PortAllocator *allocator_;
- rtc::Thread *worker_thread_;
+ PortAllocator* allocator_;
+ rtc::Thread* worker_thread_;
bool incoming_only_;
- bool waiting_for_signaling_;
int error_;
std::vector<PortAllocatorSession*> allocator_sessions_;
std::vector<PortInterface *> ports_;
@@ -248,6 +249,7 @@ class P2PTransportChannel : public TransportChannelImpl,
IceRole ice_role_;
uint64 tiebreaker_;
uint32 remote_candidate_generation_;
+ Transport::CandidateGatheringState candidate_gathering_state_;
int check_receiving_delay_;
int receiving_timeout_;

Powered by Google App Engine
This is Rietveld 408576698