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

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 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
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel.h
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
index 3d32f31565946509a5eeb21e033675c465e86c27..14cda683f5bf499358c0d77cf7220464e9553745 100644
--- a/webrtc/p2p/base/p2ptransportchannel.h
+++ b/webrtc/p2p/base/p2ptransportchannel.h
@@ -268,11 +268,15 @@ class P2PTransportChannel : public TransportChannelImpl,
void AddConnection(Connection* connection);
void OnPortReady(PortAllocatorSession *session, PortInterface* port);
+ // TODO(honghaiz): Merge the two methods OnPortsRemoved and OnPortPruned but
+ // still log the reason of removing.
+ void OnPortsRemoved(PortAllocatorSession* session,
+ const std::vector<PortInterface*>& ports);
void OnPortPruned(PortAllocatorSession* session, PortInterface* port);
- // Returns true if the port is found and removed from |ports_|.
- bool RemovePort(PortInterface* port);
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,
@@ -280,8 +284,13 @@ 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_|.
+ // Returns true if the port is found and removed from |ports_|.
+ bool RemovePort(PortInterface* port);
void OnRoleConflict(PortInterface* port);
void OnConnectionStateChange(Connection* connection);
@@ -295,6 +304,7 @@ class P2PTransportChannel : public TransportChannelImpl,
void OnMessage(rtc::Message* pmsg) override;
void OnCheckAndPing();
+ void OnRegatherOnFailedNetworks();
// Returns true if the new_connection should be selected for transmission.
bool ShouldSwitchSelectedConnection(Connection* new_connection) const;
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698