Index: net/cookies/cookie_util.h |
diff --git a/net/cookies/cookie_util.h b/net/cookies/cookie_util.h |
index 0bf1452af864015331c1491ad50f78d1652e81dc..60e5f661cd42ef671d536d93a0249bb557e8338f 100644 |
--- a/net/cookies/cookie_util.h |
+++ b/net/cookies/cookie_util.h |
@@ -37,8 +37,13 @@ NET_EXPORT bool GetCookieDomainWithString(const GURL& url, |
// i.e. it doesn't begin with a leading '.' character. |
NET_EXPORT bool DomainIsHostOnly(const std::string& domain_string); |
-// Parses the string with the cookie time (very forgivingly). |
-NET_EXPORT base::Time ParseCookieTime(const std::string& time_string); |
+// Parses the string with the cookie expiration time (very forgivingly). |
+// Returns the "null" time on failure. |
+// |
+// If the expiration date is below or above the platform-specific range |
+// supported by Time::FromUTCExplodeded(), then this will return Time(1) or |
+// Time::Max(), respectively. |
+NET_EXPORT base::Time ParseCookieExpirationTime(const std::string& time_string); |
// Convenience for converting a cookie origin (domain and https pair) to a URL. |
NET_EXPORT GURL CookieOriginToURL(const std::string& domain, bool is_https); |