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

Unified Diff: webrtc/p2p/client/fakeportallocator.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
Index: webrtc/p2p/client/fakeportallocator.h
diff --git a/webrtc/p2p/client/fakeportallocator.h b/webrtc/p2p/client/fakeportallocator.h
index 9e53bc04aaae061db0886b047471443e89af9971..95894a4c06be209c7c8bebb362743dc4caed5602 100644
--- a/webrtc/p2p/client/fakeportallocator.h
+++ b/webrtc/p2p/client/fakeportallocator.h
@@ -61,8 +61,11 @@ class FakePortAllocatorSession : public PortAllocatorSession {
running_ = true;
}
- virtual void StopGettingPorts() { running_ = false; }
+ virtual void StopGettingPorts(bool keep_session_running) {
+ running_ = keep_session_running;
+ }
virtual bool IsGettingPorts() { return running_; }
+
int port_config_count() { return port_config_count_; }
void AddPort(cricket::Port* port) {

Powered by Google App Engine
This is Rietveld 408576698