diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 14:47:31 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 14:47:31 +0000 |
commit | 0da7636f1e91b05a407a310800d6fe79796931a4 (patch) | |
tree | aed2e394e82f5ee4127bdf66ab9416bda0576d01 /net/base/cookie_monster.h | |
parent | 32c5626f902813453bc20ff0bf8449f88d443141 (diff) | |
download | chromium_src-0da7636f1e91b05a407a310800d6fe79796931a4.zip chromium_src-0da7636f1e91b05a407a310800d6fe79796931a4.tar.gz chromium_src-0da7636f1e91b05a407a310800d6fe79796931a4.tar.bz2 |
Clear cookies, local storage and databases when an extension gets uninstalled.
BUG=27938
TEST=Unittest in extension_service_unitttest.cc
Review URL: http://codereview.chromium.org/1095003
Patch from Mattias Nissler.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42467 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 ccdae0b..a48c2d3 100644 --- a/net/base/cookie_monster.h +++ b/net/base/cookie_monster.h @@ -112,6 +112,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, @@ -176,6 +179,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. |