diff options
author | huangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-08 19:55:45 +0000 |
---|---|---|
committer | huangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-08 19:55:45 +0000 |
commit | 1c5499cd2e5ad48d42f388b9a8fa7d5095443b7c (patch) | |
tree | 4d77cddbec1012e1596e5423e7445f3afb7c607e /net/cookies | |
parent | 9d9ce165f62461a784f00ebfa01379870c603033 (diff) | |
download | chromium_src-1c5499cd2e5ad48d42f388b9a8fa7d5095443b7c.zip chromium_src-1c5499cd2e5ad48d42f388b9a8fa7d5095443b7c.tar.gz chromium_src-1c5499cd2e5ad48d42f388b9a8fa7d5095443b7c.tar.bz2 |
Implementing EvictedDomainCookieCounter to keep statistics on cookie eviction and reinstatement.
BUG=225765
Review URL: https://chromiumcodereview.appspot.com/12805010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cookies')
-rw-r--r-- | net/cookies/canonical_cookie.h | 2 | ||||
-rw-r--r-- | net/cookies/cookie_monster.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h index 88bc788..6c9a222 100644 --- a/net/cookies/canonical_cookie.h +++ b/net/cookies/canonical_cookie.h @@ -82,7 +82,7 @@ class NET_EXPORT CanonicalCookie { return !domain_.empty() && domain_[0] == '.'; } bool IsHostCookie() const { return !IsDomainCookie(); } - bool IsExpired(const base::Time& current) { + bool IsExpired(const base::Time& current) const { return !expiry_date_.is_null() && current >= expiry_date_; } diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h index e39cfe1..9066b84 100644 --- a/net/cookies/cookie_monster.h +++ b/net/cookies/cookie_monster.h @@ -646,7 +646,7 @@ class NET_EXPORT CookieMonster : public CookieStore { DISALLOW_COPY_AND_ASSIGN(CookieMonster); }; -class CookieMonster::Delegate +class NET_EXPORT CookieMonster::Delegate : public base::RefCountedThreadSafe<CookieMonster::Delegate> { public: // The publicly relevant reasons a cookie might be changed. |