Chromium Code Reviews| Index: webrtc/p2p/base/candidate.h |
| diff --git a/webrtc/p2p/base/candidate.h b/webrtc/p2p/base/candidate.h |
| index ac7acabf057cdd06fa4beb915989bc49d65f04ec..5f481a7f00e2b7cfb17c426d8ebe4e04b038f5fc 100644 |
| --- a/webrtc/p2p/base/candidate.h |
| +++ b/webrtc/p2p/base/candidate.h |
| @@ -170,6 +170,13 @@ class Candidate { |
| (related_address_ == c.related_address_); |
| } |
| + // Check the equivalence of two candidates even if they are peer-reflexive |
| + // candidates of which not all fields have been filled. |
| + bool IsWeaklyEquivalent(const Candidate& c) const { |
|
pthatcher1
2016/02/10 00:01:41
We should make this something more removal-specifi
honghaiz3
2016/02/10 19:22:44
Done.
|
| + return component_ == c.component_ && protocol_ == c.protocol_ && |
| + address_ == c.address_; |
| + } |
| + |
| std::string ToString() const { |
| return ToStringInternal(false); |
| } |