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

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

Issue 2176743003: Merge SignalPortPruned with SignalPortsRemoved in PortAllocatorSession (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 5 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/portallocator.h
diff --git a/webrtc/p2p/base/portallocator.h b/webrtc/p2p/base/portallocator.h
index 152474d4f4476b5fc3060bb092e9f83cebd9aac3..9e93953e7e3c44e79ea0e4a02e9c16306ded93d5 100644
--- a/webrtc/p2p/base/portallocator.h
+++ b/webrtc/p2p/base/portallocator.h
@@ -193,7 +193,8 @@ class PortAllocatorSession : public sigslot::has_slots<> {
sigslot::signal2<PortAllocatorSession*, PortInterface*> SignalPortReady;
// Ports should be signaled to be removed when the networks of the ports
// failed (either because the interface is down, or because there is no
- // connection on the interface).
+ // connection on the interface), or when TURN ports are pruned because a
+ // higher-priority TURN port becomes ready(pairable).
Zhi Huang 2016/07/26 04:42:17 Considering your the other pending CL, the port re
honghaiz3 2016/07/27 21:31:26 Probably the name is confusing. Here removal does
sigslot::signal2<PortAllocatorSession*, const std::vector<PortInterface*>&>
SignalPortsRemoved;
sigslot::signal2<PortAllocatorSession*,
@@ -203,11 +204,6 @@ class PortAllocatorSession : public sigslot::has_slots<> {
sigslot::signal2<PortAllocatorSession*, const std::vector<Candidate>&>
SignalCandidatesRemoved;
sigslot::signal1<PortAllocatorSession*> SignalCandidatesAllocationDone;
- // A TURN port is pruned if a higher-priority TURN port becomes ready
- // (pairable). When it is pruned, it will not be used for creating
- // connections and its candidates will not be sent to the remote side
- // if they have not been sent.
- sigslot::signal2<PortAllocatorSession*, PortInterface*> SignalPortPruned;
virtual uint32_t generation() { return generation_; }
virtual void set_generation(uint32_t generation) { generation_ = generation; }

Powered by Google App Engine
This is Rietveld 408576698