diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 14:38:32 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 14:38:32 +0000 |
commit | c10da4b052a8ba91fc76455d3cc2e50e3bc2b08d (patch) | |
tree | 25fdd97cc5c3366ff50093088f7531f403f6c9b9 /net/base/cookie_monster.h | |
parent | 11abcfcb82657d248355fa2f5215a29b3e41a9ae (diff) | |
download | chromium_src-c10da4b052a8ba91fc76455d3cc2e50e3bc2b08d.zip chromium_src-c10da4b052a8ba91fc76455d3cc2e50e3bc2b08d.tar.gz chromium_src-c10da4b052a8ba91fc76455d3cc2e50e3bc2b08d.tar.bz2 |
Reland r42467. Clear cookies, local storage and databases when an extension gets uninstalled.
BUG=27938,39177
TEST=Unittest in extension_service_unitttest.cc
Review URL: http://codereview.chromium.org/1257005
Patch from Mattias Nissler.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster.h')
-rw-r--r-- | net/base/cookie_monster.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/cookie_monster.h b/net/base/cookie_monster.h index ab82056..d421d6f 100644 --- a/net/base/cookie_monster.h +++ b/net/base/cookie_monster.h @@ -118,6 +118,9 @@ class CookieMonster : public CookieStore { // one passed into the function via |delete_after|. int DeleteAllCreatedAfter(const base::Time& delete_begin, bool sync_to_store); + // Delete all cookies that match the given URL. + int DeleteAllForURL(const GURL& url, bool sync_to_store); + // Delete one specific cookie. bool DeleteCookie(const std::string& domain, const CanonicalCookie& cookie, @@ -182,6 +185,10 @@ class CookieMonster : public CookieStore { const std::string& path, CookieList* list); + // Internal helper returning all cookies for a given URL. The caller is + // assumed to hold lock_ and having called InitIfNecessary(). + CookieList InternalGetAllCookiesForURL(const GURL& url); + // Delete any cookies that are equivalent to |ecc| (same path, key, etc). // If |skip_httponly| is true, httponly cookies will not be deleted. The // return value with be true if |skip_httponly| skipped an httponly cookie. |