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

Unified Diff: webrtc/p2p/base/fakeportallocator.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/base/network_unittest.cc ('k') | webrtc/p2p/base/faketransportcontroller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/fakeportallocator.h
diff --git a/webrtc/p2p/base/fakeportallocator.h b/webrtc/p2p/base/fakeportallocator.h
index 11969e0233b73933aee80dfc5155b2569f397d4d..15e793769481dac4ac3bde5d224381e2dc9aab52 100644
--- a/webrtc/p2p/base/fakeportallocator.h
+++ b/webrtc/p2p/base/fakeportallocator.h
@@ -111,7 +111,6 @@ class FakePortAllocatorSession : public PortAllocatorSession {
rtc::IPAddress(in6addr_loopback),
64),
port_(),
- running_(false),
port_config_count_(0),
stun_servers_(allocator->stun_servers()),
turn_servers_(allocator->turn_servers()) {
@@ -124,6 +123,7 @@ class FakePortAllocatorSession : public PortAllocatorSession {
}
void StartGettingPorts() override {
+ PortAllocatorSession::StartGettingPorts();
if (!port_) {
rtc::Network& network =
(rtc::HasIPv6Enabled() && (flags() & PORTALLOCATOR_ENABLE_IPV6))
@@ -137,12 +137,8 @@ class FakePortAllocatorSession : public PortAllocatorSession {
AddPort(port_.get());
}
++port_config_count_;
- running_ = true;
}
- void StopGettingPorts() override { running_ = false; }
- bool IsGettingPorts() override { return running_; }
- void ClearGettingPorts() override {}
std::vector<PortInterface*> ReadyPorts() const override {
return ready_ports_;
}
@@ -200,7 +196,6 @@ class FakePortAllocatorSession : public PortAllocatorSession {
rtc::Network ipv4_network_;
rtc::Network ipv6_network_;
std::unique_ptr<cricket::Port> port_;
- bool running_;
int port_config_count_;
std::vector<Candidate> candidates_;
std::vector<PortInterface*> ready_ports_;
« no previous file with comments | « webrtc/base/network_unittest.cc ('k') | webrtc/p2p/base/faketransportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698