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

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

Issue 2025573002: Use continual gathering to restore backup connections (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add tests 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
Index: webrtc/p2p/base/portallocator.h
diff --git a/webrtc/p2p/base/portallocator.h b/webrtc/p2p/base/portallocator.h
index 7d2a59f278ccb307ce0266ef89f65234eb291768..d160176ee3855c325d1ac97c8e02cbb13d4cc6b8 100644
--- a/webrtc/p2p/base/portallocator.h
+++ b/webrtc/p2p/base/portallocator.h
@@ -23,6 +23,10 @@
#include "webrtc/base/sigslot.h"
#include "webrtc/base/thread.h"
+namespace rtc {
+class Network;
+} // namespace rtc
+
namespace cricket {
// PortAllocator is responsible for allocating Port types for a given
@@ -165,6 +169,8 @@ class PortAllocatorSession : public sigslot::has_slots<> {
virtual void ClearGettingPorts() = 0;
// Whether the process of getting ports has been stopped.
virtual bool IsGettingPorts() = 0;
+ virtual void InactivateNetworksInExistingSequences(
Taylor Brandstetter 2016/06/06 18:18:37 Should probably be "Deactivate".
honghaiz3 2016/06/07 16:42:06 I looked it up in the online dictionary and google
Taylor Brandstetter 2016/06/07 17:13:26 Acknowledged.
+ std::vector<rtc::Network*>* networks) {}
// Another way of getting the information provided by the signals below.
//
@@ -263,6 +269,8 @@ class PortAllocator : public sigslot::has_slots<> {
// loopback interfaces.
virtual void SetNetworkIgnoreMask(int network_ignore_mask) = 0;
+ virtual void GetNetworks(std::vector<rtc::Network*>* networks) const = 0;
+
std::unique_ptr<PortAllocatorSession> CreateSession(
const std::string& sid,
const std::string& content_name,

Powered by Google App Engine
This is Rietveld 408576698