Index: webrtc/p2p/client/basicportallocator.h |
diff --git a/webrtc/p2p/client/basicportallocator.h b/webrtc/p2p/client/basicportallocator.h |
index a27ff4c6274f66e9b783d45238eaf83cee6fbe9f..37ce1a07483dd3dfd77dcd25b33cb61a339a8a22 100644 |
--- a/webrtc/p2p/client/basicportallocator.h |
+++ b/webrtc/p2p/client/basicportallocator.h |
@@ -182,6 +182,7 @@ class BasicPortAllocatorSession : public PortAllocatorSession, |
void MaybeSignalCandidatesAllocationDone(); |
void OnPortAllocationComplete(AllocationSequence* seq); |
PortData* FindPort(Port* port); |
+ void GetNetworks(std::vector<rtc::Network*>* networks); |
bool CheckCandidateFilter(const Candidate& c); |
@@ -260,8 +261,11 @@ class AllocationSequence : public rtc::MessageHandler, |
~AllocationSequence(); |
bool Init(); |
void Clear(); |
+ void OnNetworkRemoved(); |
State state() const { return state_; } |
+ const rtc::Network* network() const { return network_; } |
+ bool network_removed() const { return network_removed_; } |
// Disables the phases for a new sequence that this one already covers for an |
// equivalent network setup. |
@@ -311,6 +315,7 @@ class AllocationSequence : public rtc::MessageHandler, |
void OnPortDestroyed(PortInterface* port); |
BasicPortAllocatorSession* session_; |
+ bool network_removed_ = false; |
rtc::Network* network_; |
rtc::IPAddress ip_; |
PortConfiguration* config_; |