summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:20:10 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:20:10 +0000
commit14acc6453fa956c279b2b788e00f937e23d951b3 (patch)
tree04df34881382e794d7218af42a62aa43df57e5e2 /android_webview
parent3df6cdbbdec79e947aeadfbb360c755b7790a637 (diff)
downloadchromium_src-14acc6453fa956c279b2b788e00f937e23d951b3.zip
chromium_src-14acc6453fa956c279b2b788e00f937e23d951b3.tar.gz
chromium_src-14acc6453fa956c279b2b788e00f937e23d951b3.tar.bz2
Implement the ability to obliterate a storage partition from disk.
On the uninstall of an extension with isolated storage, we want to delete all the data for the extension from disk as soon as possible. Because we cannot know when various objects with state on disk (eg., FileSystemContext) have all been deleted, we do a best-effort delete for any directory that we know isn't being used. The way this gets projected into the content modulue is that each extension defines one partition_domain. If an extension has a <webview> tag, it will also have multiple StoragePartitions, each with a different partition_name. If it doesn't have a <webview> tag, the partition_name is considered empty which yields the default partition. The default partition, and all webview partitions are peers inside the partition_domain's root directory. This CL introduces a function that allows us to delete partiton domain. Special care is taken to not accidentally instantiate a StoragePartition for the domain if none current exists. This is necessary to allow us to actually delete the whole partition domain directory. (Patch by ajwong@chromium.org) BUG=85127 Review URL: https://chromiumcodereview.appspot.com/11280030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
0 files changed, 0 insertions, 0 deletions