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 |