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

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

Issue 2025573002: Use continual gathering to restore backup connections (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge branch 'master' into enhanced_cg Created 4 years, 6 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 fc22b2089af49e7ca972fbfdb9a1355bf1af5479..3baa5a9dfc944566fde38969e0bf2fe250af0916 100644
--- a/webrtc/p2p/base/p2ptransportchannel.h
+++ b/webrtc/p2p/base/p2ptransportchannel.h
@@ -260,8 +260,12 @@ class P2PTransportChannel : public TransportChannelImpl,
void AddConnection(Connection* connection);
void OnPortReady(PortAllocatorSession *session, PortInterface* port);
+ void OnPortsRemoved(PortAllocatorSession* session,
+ const std::vector<PortInterface*>& ports);
void OnCandidatesReady(PortAllocatorSession *session,
const std::vector<Candidate>& candidates);
+ void OnCandidatesRemoved(PortAllocatorSession* session,
+ const std::vector<Candidate>& candidates);
void OnCandidatesAllocationDone(PortAllocatorSession* session);
void OnUnknownAddress(PortInterface* port,
const rtc::SocketAddress& addr,
@@ -269,8 +273,12 @@ class P2PTransportChannel : public TransportChannelImpl,
IceMessage* stun_msg,
const std::string& remote_username,
bool port_muxed);
+
+ // When a port is destroyed, remove it from both lists |ports_|
+ // and |removed_ports_|.
void OnPortDestroyed(PortInterface* port);
- void OnPortNetworkInactive(PortInterface* port);
+ // When removing a port, move it from |ports_| to |removed_ports_|.
+ bool RemovePort(PortInterface* port);
void OnRoleConflict(PortInterface* port);
void OnConnectionStateChange(Connection* connection);
@@ -285,6 +293,7 @@ class P2PTransportChannel : public TransportChannelImpl,
void OnMessage(rtc::Message* pmsg) override;
void OnSort();
void OnCheckAndPing();
+ void OnRegatherOnFailedNetworks();
// Returns true if the new_connection should be selected for transmission.
bool ShouldSwitchSelectedConnection(Connection* new_connection) const;

Powered by Google App Engine
This is Rietveld 408576698