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

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

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Removed changes in call dir and leave that in a separate CL. Created 4 years, 9 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_unittest.cc ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index 4c5a15090e32b30efaefebc53281506c25ccd246..7c4468d2e6b7d112abf7a4b93f41b9645e5f86c3 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -17,6 +17,7 @@
#include <vector>
#include "webrtc/p2p/base/candidate.h"
+#include "webrtc/p2p/base/candidatepairinterface.h"
#include "webrtc/p2p/base/packetsocketfactory.h"
#include "webrtc/p2p/base/portinterface.h"
#include "webrtc/p2p/base/stun.h"
@@ -410,8 +411,9 @@ class Port : public PortInterface, public rtc::MessageHandler,
// Represents a communication link between a port on the local client and a
// port on the remote client.
-class Connection : public rtc::MessageHandler,
- public sigslot::has_slots<> {
+class Connection : public CandidatePairInterface,
+ public rtc::MessageHandler,
+ public sigslot::has_slots<> {
public:
struct SentPing {
SentPing(const std::string id, int64_t sent_time)
@@ -435,11 +437,11 @@ class Connection : public rtc::MessageHandler,
Port* port() { return port_; }
const Port* port() const { return port_; }
+ // Implementation of virtual methods in CandidatePairInterface.
// Returns the description of the local port
virtual const Candidate& local_candidate() const;
-
// Returns the description of the remote port to which we communicate.
- const Candidate& remote_candidate() const { return remote_candidate_; }
+ virtual const Candidate& remote_candidate() const;
// Returns the pair priority.
uint64_t priority() const;
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698