summaryrefslogtreecommitdiffstats
path: root/webkit/database/database_tracker.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 20:19:16 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 20:19:16 +0000
commit869f2efe7f02e3eca489b1ced00f371543bb1e0a (patch)
treefc821949211a73dd0c763e7c081b6eca9afc2583 /webkit/database/database_tracker.h
parent0ec9203dac6b11c664adda8a39b77f3f00eb6072 (diff)
downloadchromium_src-869f2efe7f02e3eca489b1ced00f371543bb1e0a.zip
chromium_src-869f2efe7f02e3eca489b1ced00f371543bb1e0a.tar.gz
chromium_src-869f2efe7f02e3eca489b1ced00f371543bb1e0a.tar.bz2
Reapply 42467 by reverting 42499 and added suppression.
"Clear cookies, local storage and databases when an extension gets uninstalled." BUG=39177 BUG=38398 Review URL: http://codereview.chromium.org/1210004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/database_tracker.h')
-rw-r--r--webkit/database/database_tracker.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h
index 90c9ebc..d1d5a43 100644
--- a/webkit/database/database_tracker.h
+++ b/webkit/database/database_tracker.h
@@ -148,6 +148,12 @@ class DatabaseTracker
int DeleteDataModifiedSince(const base::Time& cutoff,
net::CompletionCallback* callback);
+ // Delete all databases that belong to the given origin. Returns net::OK on
+ // success, net::FAILED if not all databases could be deleted, and
+ // net::ERR_IO_PENDING and |callback| is invoked upon completion, if non-NULL.
+ int DeleteDataForOrigin(const string16& origin_identifier,
+ net::CompletionCallback* callback);
+
static void ClearLocalState(const FilePath& profile_path);
private:
@@ -201,6 +207,10 @@ class DatabaseTracker
const string16& database_name);
void ScheduleDatabaseForDeletion(const string16& origin_identifier,
const string16& database_name);
+ // Schedule a set of open databases for deletion. If non-null, callback is
+ // invoked upon completion.
+ void ScheduleDatabasesForDeletion(const DatabaseSet& databases,
+ net::CompletionCallback* callback);
bool initialized_;
const FilePath db_dir_;