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

Unified Diff: webrtc/api/jsep.h

Issue 1648813004: Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: small fixes 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
Index: webrtc/api/jsep.h
diff --git a/webrtc/api/jsep.h b/webrtc/api/jsep.h
index 0673ce128e053098bbc87c7ee264ce88d6a01ccf..8ad26eda2a6ab1deaf36a4869b85043234f6768c 100644
--- a/webrtc/api/jsep.h
+++ b/webrtc/api/jsep.h
@@ -20,8 +20,9 @@
#include "webrtc/base/refcount.h"
namespace cricket {
-class SessionDescription;
class Candidate;
+class SessionDescription;
+typedef std::vector<Candidate> Candidates;
pthatcher1 2016/03/05 02:14:32 Can you just use std::vector<Candidate> everywhere
honghaiz3 2016/03/09 17:40:06 Done.
} // namespace cricket
namespace webrtc {
@@ -95,6 +96,10 @@ 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 candidates from the description.
+ // Returns the number of candidates removed.
+ virtual size_t RemoveCandidates(const cricket::Candidates& candidates) = 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

Powered by Google App Engine
This is Rietveld 408576698