diff options
author | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 13:21:46 +0000 |
---|---|---|
committer | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 13:21:46 +0000 |
commit | 009cf7d7aa0c6553d8a52d269eefb75e1a572a40 (patch) | |
tree | c64ba38db81e9c1a896882816cf2d62be9394fc0 /chrome/common/extensions/api/browsing_data.json | |
parent | 7a2ea72b7cc3e2be389391ba8169afe81aae920c (diff) | |
download | chromium_src-009cf7d7aa0c6553d8a52d269eefb75e1a572a40.zip chromium_src-009cf7d7aa0c6553d8a52d269eefb75e1a572a40.tar.gz chromium_src-009cf7d7aa0c6553d8a52d269eefb75e1a572a40.tar.bz2 |
`chrome.browsingData` extension API can now remove data from protected origins.
Currently, installing a hosted application for `example.com` means that we
ignore that origin when removing browsing data. This CL extends the filtering
options available to extension authors using the BrowsingData API to include
removal of browsing data for these "protected" web origins.
BUG=113194
TEST=browser_tests
Review URL: https://chromiumcodereview.appspot.com/10522002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/browsing_data.json')
-rw-r--r-- | chrome/common/extensions/api/browsing_data.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/browsing_data.json b/chrome/common/extensions/api/browsing_data.json index 7ba52cc..92a3f76 100644 --- a/chrome/common/extensions/api/browsing_data.json +++ b/chrome/common/extensions/api/browsing_data.json @@ -15,6 +15,28 @@ "type": "number", "optional": true, "description": "Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the <code>getTime</code> method of the JavaScript <code>Date</code> object). If absent, defaults to 0 (which would remove all browsing data)." + }, + "originTypes": { + "type": "object", + "optional": true, + "description": "An object whose properties specify which origin types ought to be cleared. If this object isn't specified, it defaults to clearing only \"unprotected\" origins. Please ensure that you <em>really</em> want to remove application data before adding 'protectedWeb' or 'extensions'.", + "properties": { + "unprotectedWeb": { + "type": "boolean", + "optional": true, + "description": "Normal websites." + }, + "protectedWeb": { + "type": "boolean", + "optional": true, + "description": "Websites that have been installed as hosted applications (be careful!)." + }, + "extension": { + "type": "boolean", + "optional": true, + "description": "Extensions and packaged applications a user has installed (be _really_ careful!)." + } + } } } } |