| Index: net/cookies/canonical_cookie.h
|
| diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h
|
| index a2b366ddd619724ffe63c3750db0077aeead6b00..84816ce9f44ee6028e7c59daa8e11ec62620fba4 100644
|
| --- a/net/cookies/canonical_cookie.h
|
| +++ b/net/cookies/canonical_cookie.h
|
| @@ -47,8 +47,8 @@ class NET_EXPORT CanonicalCookie {
|
| // Supports the default copy constructor.
|
|
|
| // Creates a new |CanonicalCookie| from the |cookie_line| and the
|
| - // |creation_time|. Canonicalizes and validates inputs. May return NULL if
|
| - // an attribute value is invalid.
|
| + // |creation_time|. Canonicalizes and validates inputs. May return NULL if
|
| + // an attribute value is invalid. |creation_time| may not be null.
|
| static std::unique_ptr<CanonicalCookie> Create(
|
| const GURL& url,
|
| const std::string& cookie_line,
|
| @@ -144,6 +144,15 @@ class NET_EXPORT CanonicalCookie {
|
| // FullCompare() are also sorted with respect to PartialCompare().
|
| bool FullCompare(const CanonicalCookie& other) const;
|
|
|
| + // Return whether this object is a valid CanonicalCookie(). Invalid
|
| + // cookies may be constructed by the detailed constructor.
|
| + bool IsCanonical() const;
|
| +
|
| + // Sets the creation date of the cookie to the specified value. It
|
| + // is only valid to call this method if the existing creation date
|
| + // is null.
|
| + void SetCreationDate(base::Time new_creation_date);
|
| +
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(CanonicalCookieTest, TestPrefixHistograms);
|
|
|
|
|