Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3544)

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 8952014: Reland of r114615: "chrome.clear: Increasing granularity of public API" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.clear.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 3b43aacb628cd5a8cb55d8834796494005a515b2..6b73644f113ac5056f0dc082e9cb119db91f0b66 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -8784,10 +8784,9 @@
"namespace": "experimental.clear",
"types": [
{
- "id": "TimePeriod",
- "type": "string",
- "enum": ["last_hour", "last_day", "last_week", "last_month", "everything"],
- "description": "The timeframe inside of which to delete browsing data. Passing 'last_day', for example, will delete all browsing data that was touched between 24 hours ago and right now, inclusive."
+ "id": "RemovalRange",
+ "type": "number",
+ "description": "Remove data accumulated on or after this date, represented in milliseconds since the epoch ('Date().GetTime()')"
}
],
"functions": [
@@ -8797,14 +8796,19 @@
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "dataToRemove",
"type": "object",
"description": "An object whose properties specify which browsing data types ought to be cleared. You may set as many or as few as you like in a single call, each is optional (defaulting to <code>false</code>).",
"properties": {
+ "appcache": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should websites' appcaches be cleared?"
+ },
"cache": {
"type": "boolean",
"optional": true,
@@ -8820,6 +8824,11 @@
"optional": true,
"description": "Should the browser's download list be cleared?"
},
+ "fileSystems": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should websites' file systems be cleared?"
+ },
"formData": {
"type": "boolean",
"optional": true,
@@ -8830,10 +8839,30 @@
"optional": true,
"description": "Should the browser's history be cleared?"
},
+ "indexedDB": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should websites' IndexedDB data be cleared?"
+ },
+ "localStorage": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should websites' local storage data be cleared?"
+ },
+ "pluginData": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should plugins' data be cleared?"
+ },
"passwords": {
"type": "boolean",
"optional": true,
"description": "Should the stored passwords be cleared?"
+ },
+ "webSQL": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Should websites' WebSQL data be cleared?"
}
}
},
@@ -8847,18 +8876,36 @@
]
},
{
+ "name": "appcache",
+ "description": "Clears websites' appcache data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when websites' appcache data has been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "cache",
"description": "Clears the browser's cache.",
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
"type": "function",
- "description": "Called when the browser's cache has cleared.",
+ "description": "Called when the browser's cache has been cleared.",
"optional": true,
"parameters": []
}
@@ -8866,17 +8913,17 @@
},
{
"name": "cookies",
- "description": "Clears the browser's cookies and site data.",
+ "description": "Clears the browser's cookies.",
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
"type": "function",
- "description": "Called when the browser's cookies and site data have been cleared.",
+ "description": "Called when the browser's cookies have been cleared.",
"optional": true,
"parameters": []
}
@@ -8888,8 +8935,8 @@
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
@@ -8901,13 +8948,31 @@
]
},
{
+ "name": "fileSystems",
+ "description": "Clears websites' file system data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when websites' file systems have been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "formData",
"description": "Clears the browser's stored form data (autofill).",
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
@@ -8924,8 +8989,8 @@
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
@@ -8937,13 +9002,67 @@
]
},
{
+ "name": "indexedDB",
+ "description": "Clears websites' IndexedDB data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when websites' IndexedDB data has been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "localStorage",
+ "description": "Clears websites' local storage data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when websites' local storage has been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "lsoData",
+ "description": "Clears plugins' Local Storage Object data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when plugins' Local Storage Data has been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "passwords",
"description": "Clears the browser's stored passwords.",
"type": "function",
"parameters": [
{
- "$ref": "TimePeriod",
- "name": "period"
+ "$ref": "RemovalRange",
+ "name": "since"
},
{
"name": "callback",
@@ -8953,6 +9072,24 @@
"parameters": []
}
]
+ },
+ {
+ "name": "webSQL",
+ "description": "Clears websites' WebSQL data.",
+ "type": "function",
+ "parameters": [
+ {
+ "$ref": "RemovalRange",
+ "name": "since"
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when websites' WebSQL databases have been cleared.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
}
]
},
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.clear.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698