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 79c09755f7f247a68e9abd5c31d3a2c0479ff4e3..bfa2b37c99dfc792439032a47b4558f40ccd8c75 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": [] |
+ } |
+ ] |
} |
] |
}, |