| Index: net/cookies/canonical_cookie.cc
|
| diff --git a/net/cookies/canonical_cookie.cc b/net/cookies/canonical_cookie.cc
|
| index 2eb732b7d237964077ff129922dc82fd83acdbf1..6c81a55dc7df1d768618d9d76b338a0b0fd79974 100644
|
| --- a/net/cookies/canonical_cookie.cc
|
| +++ b/net/cookies/canonical_cookie.cc
|
| @@ -97,6 +97,29 @@ CanonicalCookie::CanonicalCookie()
|
|
|
| CanonicalCookie::CanonicalCookie(const CanonicalCookie& other) = default;
|
|
|
| +CanonicalCookie::CanonicalCookie(const std::string& name,
|
| + const std::string& value,
|
| + const std::string& domain,
|
| + const std::string& path,
|
| + const base::Time& creation,
|
| + const base::Time& expiration,
|
| + const base::Time& last_access,
|
| + bool secure,
|
| + bool httponly,
|
| + CookieSameSite same_site,
|
| + CookiePriority priority)
|
| + : name_(name),
|
| + value_(value),
|
| + domain_(domain),
|
| + path_(path),
|
| + creation_date_(creation),
|
| + expiry_date_(expiration),
|
| + last_access_date_(last_access),
|
| + secure_(secure),
|
| + httponly_(httponly),
|
| + same_site_(same_site),
|
| + priority_(priority) {}
|
| +
|
| CanonicalCookie::~CanonicalCookie() {}
|
|
|
| // static
|
| @@ -222,27 +245,6 @@ std::unique_ptr<CanonicalCookie> CanonicalCookie::Create(
|
| parsed_cookie.Priority()));
|
| }
|
|
|
| -// static
|
| -std::unique_ptr<CanonicalCookie> CanonicalCookie::Create(
|
| - const std::string& name,
|
| - const std::string& value,
|
| - const std::string& domain,
|
| - const std::string& path,
|
| - const base::Time& creation,
|
| - const base::Time& expiration,
|
| - const base::Time& last_access,
|
| - bool secure,
|
| - bool http_only,
|
| - CookieSameSite same_site,
|
| - CookiePriority priority) {
|
| - DCHECK(!name.empty());
|
| - DCHECK(!path.empty());
|
| -
|
| - return base::WrapUnique(
|
| - new CanonicalCookie(name, value, domain, path, creation, expiration,
|
| - last_access, secure, http_only, same_site, priority));
|
| -}
|
| -
|
| bool CanonicalCookie::IsEquivalentForSecureCookieMatching(
|
| const CanonicalCookie& ecc) const {
|
| return (name_ == ecc.Name() && (ecc.IsDomainMatch(DomainWithoutDot()) ||
|
| @@ -397,29 +399,6 @@ bool CanonicalCookie::FullCompare(const CanonicalCookie& other) const {
|
| return Priority() < other.Priority();
|
| }
|
|
|
| -CanonicalCookie::CanonicalCookie(const std::string& name,
|
| - const std::string& value,
|
| - const std::string& domain,
|
| - const std::string& path,
|
| - const base::Time& creation,
|
| - const base::Time& expiration,
|
| - const base::Time& last_access,
|
| - bool secure,
|
| - bool httponly,
|
| - CookieSameSite same_site,
|
| - CookiePriority priority)
|
| - : name_(name),
|
| - value_(value),
|
| - domain_(domain),
|
| - path_(path),
|
| - creation_date_(creation),
|
| - expiry_date_(expiration),
|
| - last_access_date_(last_access),
|
| - secure_(secure),
|
| - httponly_(httponly),
|
| - same_site_(same_site),
|
| - priority_(priority) {}
|
| -
|
| // static
|
| CanonicalCookie::CookiePrefix CanonicalCookie::GetCookiePrefix(
|
| const std::string& name) {
|
|
|