Chromium Code Reviews| 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 adb49126138d2bb806fab483b056a8825b159463..49481dbff4e54c0c5637f5080f19397d6c2abadb 100644 |
| --- a/chrome/common/extensions/api/extension_api.json |
| +++ b/chrome/common/extensions/api/extension_api.json |
| @@ -8090,5 +8090,181 @@ |
| ] |
| } |
| ] |
| + }, |
| + { |
| + "namespace": "experimental.clear", |
|
kathyw
2011/08/25 18:33:15
It's a little odd to have a namespace that is a ve
|
| + "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." |
|
kathyw
2011/08/25 18:33:15
will delete -> deletes
|
| + } |
| + ], |
| + "functions": [ |
| + { |
| + "name": "browsingData", |
|
kathyw
2011/08/25 18:33:15
browsingData -> clear
or maybe "remove"
or maybe
|
| + "description": "Clears data generated by browsing within a particular timeframe.", |
|
kathyw
2011/08/25 18:33:15
data generated by -> the specified kinds of data t
|
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "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>).", |
|
kathyw
2011/08/25 18:33:15
First sentence could be more straightforward:
->
|
| + "properties": { |
| + "cache": { |
|
kathyw
2011/08/25 18:33:15
cache -> clearCache
|
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should the browser cache be cleared?" |
|
kathyw
2011/08/25 18:33:15
Interesting construction, having these as question
|
| + }, |
| + "cookies": { |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should the browser's cookies be cleared?" |
|
kathyw
2011/08/25 18:33:15
Specify <code>true</code> to remove browser cookie
|
| + }, |
| + "downloads": { |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should the browser's download list be cleared?" |
| + }, |
| + "formData": { |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should stored form data be cleared?" |
| + }, |
| + "history": { |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should the browser's history be cleared?" |
| + }, |
| + "passwords": { |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Should the stored passwords be cleared?" |
| + } |
| + } |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when deletion has completed.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "cache", |
| + "description": "Clears the browser's cache.", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's cache has cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "cookies", |
| + "description": "Clears the browser's cookies and site data.", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's cookies and site data have been cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "downloads", |
| + "description": "Clears the browser's list of downloaded files (<em>not</em> the downloaded files themselves).", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's list of downloaded files has been cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "formData", |
| + "description": "Clears the browser's stored form data (autofill).", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's form data has been cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "history", |
| + "description": "Clears the browser's history.", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's history has cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "passwords", |
| + "description": "Clears the browser's stored passwords.", |
| + "type": "function", |
| + "parameters": [ |
| + { |
| + "$ref": "TimePeriod", |
| + "name": "period" |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "description": "Called when the browser's passwords have been cleared.", |
| + "optional": true, |
| + "parameters": [] |
| + } |
| + ] |
| + } |
| + ] |
| } |
| ] |