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

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

Issue 1359363003: Make it possible to keep the port allocator session running (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 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/p2ptransportchannel.cc ('k') | webrtc/p2p/client/basicportallocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/portallocator.h
diff --git a/webrtc/p2p/base/portallocator.h b/webrtc/p2p/base/portallocator.h
index 6e3efa8c4144d69fdfbb71ba30c6c14c3c09b872..7c390761de24ebb13224d2c5c5be0ef1223bcc33 100644
--- a/webrtc/p2p/base/portallocator.h
+++ b/webrtc/p2p/base/portallocator.h
@@ -90,7 +90,10 @@ class PortAllocatorSession : public sigslot::has_slots<> {
// Starts gathering STUN and Relay configurations.
virtual void StartGettingPorts() = 0;
- virtual void StopGettingPorts() = 0;
+ // If |keep_session_running| is true, stop all existing allocation
+ // sequences of the current session but keep the session running so that
+ // if it is needed, it may restart a new allocation sequence.
+ virtual void StopGettingPorts(bool keep_session_running) = 0;
pthatcher1 2015/09/26 00:56:43 I think we should have two methods: 1. StopGettin
honghaiz3 2015/09/29 14:56:58 Done.
virtual bool IsGettingPorts() = 0;
sigslot::signal2<PortAllocatorSession*, PortInterface*> SignalPortReady;
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/client/basicportallocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698