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 /webkit/database/database_tracker.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 'webkit/database/database_tracker.h')
-rw-r--r-- | webkit/database/database_tracker.h | 10 |
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_; |