Index: net/cookies/canonical_cookie.h |
diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h |
index 27051a32043c0571c4ee85770638057f3bf180fb..30fb3e764aaf3afd6dd8e064827a5c525283a397 100644 |
--- a/net/cookies/canonical_cookie.h |
+++ b/net/cookies/canonical_cookie.h |
@@ -136,6 +136,18 @@ class NET_EXPORT CanonicalCookie { |
const base::Time& current, |
const base::Time& server_time); |
+ // Cookie ordering methods. |
+ |
+ // Returns true if the cookie is less than |other|, considering only name, |
+ // domain and path. In particular, two equivalent cookies (see IsEquivalent()) |
+ // are identical for PartialCompare(). |
+ bool PartialCompare(const CanonicalCookie& other) const; |
+ |
+ // Returns true if the cookie is less than |other|, considering all fields. |
+ // FullCompare() is consistent with PartialCompare(): cookies sorted using |
+ // FullCompare() are also sorted with respect to PartialCompare(). |
+ bool FullCompare(const CanonicalCookie& other) const; |
+ |
private: |
// The source member of a canonical cookie is the origin of the URL that tried |
// to set this cookie, minus the port number if any. This field is not |