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

Unified Diff: talk/app/webrtc/jsep.h

Issue 1648813004: Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 10 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 | « no previous file | talk/app/webrtc/jsepicecandidate.h » ('j') | talk/app/webrtc/jsepicecandidate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/jsep.h
diff --git a/talk/app/webrtc/jsep.h b/talk/app/webrtc/jsep.h
index c12ab85f346c10467b49cd2d3dc4dc69a4d347cc..259e7000fb86f96c052be4d8ab7c09476990b5b2 100644
--- a/talk/app/webrtc/jsep.h
+++ b/talk/app/webrtc/jsep.h
@@ -87,6 +87,9 @@ class IceCandidateCollection {
// Returns true if an equivalent |candidate| exist in the collection.
virtual bool HasCandidate(const IceCandidateInterface* candidate) const = 0;
virtual const IceCandidateInterface* at(size_t index) const = 0;
+ // Removes candidates that have a matching address and protocol.
+ // Returns the number of candidates that were removed.
+ virtual int remove(const IceCandidateInterface* candidate) = 0;
};
// Class representation of a Session description.
@@ -112,6 +115,9 @@ class SessionDescriptionInterface {
// Returns false if the session description does not have a media section that
// corresponds to the |candidate| label.
virtual bool AddCandidate(const IceCandidateInterface* candidate) = 0;
+ // Removes the candidate that has a matching 5-tuple from the description.
+ // Returns true if a candidate is found and removed.
+ virtual bool RemoveCandidate(const IceCandidateInterface* candidate) = 0;
// Returns the number of m- lines in the session description.
virtual size_t number_of_mediasections() const = 0;
// Returns a collection of all candidates that belong to a certain m-line
« no previous file with comments | « no previous file | talk/app/webrtc/jsepicecandidate.h » ('j') | talk/app/webrtc/jsepicecandidate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698