Index: webrtc/p2p/base/transport.h |
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h |
index 6b4b37d4c56b89e0abc9617ff58b1fc92d96170e..afa2b0353a1d37355c3ebe3fb829ae3673f8faa1 100644 |
--- a/webrtc/p2p/base/transport.h |
+++ b/webrtc/p2p/base/transport.h |
@@ -237,11 +237,8 @@ class Transport : public sigslot::has_slots<> { |
// Called when one or more candidates are ready from the remote peer. |
bool AddRemoteCandidates(const std::vector<Candidate>& candidates, |
std::string* error); |
- |
- // If candidate is not acceptable, returns false and sets error. |
- // Call this before calling OnRemoteCandidates. |
- virtual bool VerifyCandidate(const Candidate& candidate, |
- std::string* error); |
+ bool RemoveRemoteCandidates(const std::vector<Candidate>& candidates, |
+ std::string* error); |
virtual bool GetSslRole(rtc::SSLRole* ssl_role) const { return false; } |
@@ -295,6 +292,11 @@ class Transport : public sigslot::has_slots<> { |
std::string* error_desc); |
private: |
+ // If a candidate is not acceptable, returns false and sets error. |
+ // Call this before calling OnRemoteCandidates. |
+ bool VerifyCandidate(const Candidate& candidate, std::string* error); |
+ bool VerifyCandidates(const Candidates& candidates, std::string* error); |
+ |
// Candidate component => TransportChannelImpl* |
typedef std::map<int, TransportChannelImpl*> ChannelMap; |