OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "unprivileged": true, | 4 "unprivileged": true, |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "MessageSender", | 7 "id": "MessageSender", |
8 "type": "object", | 8 "type": "object", |
9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
10 "properties": { | 10 "properties": { |
(...skipping 8132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8143 "name": "result", | 8143 "name": "result", |
8144 "type": "string", | 8144 "type": "string", |
8145 "description": "A string result code. The value is non-empty on
success only in tests.", | 8145 "description": "A string result code. The value is non-empty on
success only in tests.", |
8146 "optional": "true" | 8146 "optional": "true" |
8147 } | 8147 } |
8148 ] | 8148 ] |
8149 } | 8149 } |
8150 ] | 8150 ] |
8151 } | 8151 } |
8152 ] | 8152 ] |
| 8153 }, |
| 8154 { |
| 8155 "namespace": "experimental.clear", |
| 8156 "types": [ |
| 8157 { |
| 8158 "id": "TimePeriod", |
| 8159 "type": "string", |
| 8160 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything
"], |
| 8161 "description": "The timeframe inside of which to delete browsing data. P
assing 'last_day', for example, will delete all browsing data that was touched b
etween 24 hours ago and right now, inclusive." |
| 8162 } |
| 8163 ], |
| 8164 "functions": [ |
| 8165 { |
| 8166 "name": "browsingData", |
| 8167 "description": "Clears data generated by browsing within a particular ti
meframe.", |
| 8168 "type": "function", |
| 8169 "parameters": [ |
| 8170 { |
| 8171 "$ref": "TimePeriod", |
| 8172 "name": "period" |
| 8173 }, |
| 8174 { |
| 8175 "name": "dataToRemove", |
| 8176 "type": "object", |
| 8177 "description": "An object whose properties specify which browsing da
ta types ought to be cleared. You may set as many or as few as you like in a sin
gle call, each is optional (defaulting to <code>false</code>).", |
| 8178 "properties": { |
| 8179 "cache": { |
| 8180 "type": "boolean", |
| 8181 "optional": true, |
| 8182 "description": "Should the browser cache be cleared?" |
| 8183 }, |
| 8184 "cookies": { |
| 8185 "type": "boolean", |
| 8186 "optional": true, |
| 8187 "description": "Should the browser's cookies be cleared?" |
| 8188 }, |
| 8189 "downloads": { |
| 8190 "type": "boolean", |
| 8191 "optional": true, |
| 8192 "description": "Should the browser's download list be cleared?" |
| 8193 }, |
| 8194 "formData": { |
| 8195 "type": "boolean", |
| 8196 "optional": true, |
| 8197 "description": "Should stored form data be cleared?" |
| 8198 }, |
| 8199 "history": { |
| 8200 "type": "boolean", |
| 8201 "optional": true, |
| 8202 "description": "Should the browser's history be cleared?" |
| 8203 }, |
| 8204 "passwords": { |
| 8205 "type": "boolean", |
| 8206 "optional": true, |
| 8207 "description": "Should the stored passwords be cleared?" |
| 8208 } |
| 8209 } |
| 8210 }, |
| 8211 { |
| 8212 "name": "callback", |
| 8213 "type": "function", |
| 8214 "description": "Called when deletion has completed.", |
| 8215 "optional": true, |
| 8216 "parameters": [] |
| 8217 } |
| 8218 ] |
| 8219 }, |
| 8220 { |
| 8221 "name": "cache", |
| 8222 "description": "Clears the browser's cache.", |
| 8223 "type": "function", |
| 8224 "parameters": [ |
| 8225 { |
| 8226 "$ref": "TimePeriod", |
| 8227 "name": "period" |
| 8228 }, |
| 8229 { |
| 8230 "name": "callback", |
| 8231 "type": "function", |
| 8232 "description": "Called when the browser's cache has cleared.", |
| 8233 "optional": true, |
| 8234 "parameters": [] |
| 8235 } |
| 8236 ] |
| 8237 }, |
| 8238 { |
| 8239 "name": "cookies", |
| 8240 "description": "Clears the browser's cookies and site data.", |
| 8241 "type": "function", |
| 8242 "parameters": [ |
| 8243 { |
| 8244 "$ref": "TimePeriod", |
| 8245 "name": "period" |
| 8246 }, |
| 8247 { |
| 8248 "name": "callback", |
| 8249 "type": "function", |
| 8250 "description": "Called when the browser's cookies and site data have
been cleared.", |
| 8251 "optional": true, |
| 8252 "parameters": [] |
| 8253 } |
| 8254 ] |
| 8255 }, |
| 8256 { |
| 8257 "name": "downloads", |
| 8258 "description": "Clears the browser's list of downloaded files (<em>not</
em> the downloaded files themselves).", |
| 8259 "type": "function", |
| 8260 "parameters": [ |
| 8261 { |
| 8262 "$ref": "TimePeriod", |
| 8263 "name": "period" |
| 8264 }, |
| 8265 { |
| 8266 "name": "callback", |
| 8267 "type": "function", |
| 8268 "description": "Called when the browser's list of downloaded files h
as been cleared.", |
| 8269 "optional": true, |
| 8270 "parameters": [] |
| 8271 } |
| 8272 ] |
| 8273 }, |
| 8274 { |
| 8275 "name": "formData", |
| 8276 "description": "Clears the browser's stored form data (autofill).", |
| 8277 "type": "function", |
| 8278 "parameters": [ |
| 8279 { |
| 8280 "$ref": "TimePeriod", |
| 8281 "name": "period" |
| 8282 }, |
| 8283 { |
| 8284 "name": "callback", |
| 8285 "type": "function", |
| 8286 "description": "Called when the browser's form data has been cleared
.", |
| 8287 "optional": true, |
| 8288 "parameters": [] |
| 8289 } |
| 8290 ] |
| 8291 }, |
| 8292 { |
| 8293 "name": "history", |
| 8294 "description": "Clears the browser's history.", |
| 8295 "type": "function", |
| 8296 "parameters": [ |
| 8297 { |
| 8298 "$ref": "TimePeriod", |
| 8299 "name": "period" |
| 8300 }, |
| 8301 { |
| 8302 "name": "callback", |
| 8303 "type": "function", |
| 8304 "description": "Called when the browser's history has cleared.", |
| 8305 "optional": true, |
| 8306 "parameters": [] |
| 8307 } |
| 8308 ] |
| 8309 }, |
| 8310 { |
| 8311 "name": "passwords", |
| 8312 "description": "Clears the browser's stored passwords.", |
| 8313 "type": "function", |
| 8314 "parameters": [ |
| 8315 { |
| 8316 "$ref": "TimePeriod", |
| 8317 "name": "period" |
| 8318 }, |
| 8319 { |
| 8320 "name": "callback", |
| 8321 "type": "function", |
| 8322 "description": "Called when the browser's passwords have been cleare
d.", |
| 8323 "optional": true, |
| 8324 "parameters": [] |
| 8325 } |
| 8326 ] |
| 8327 } |
| 8328 ] |
8153 } | 8329 } |
8154 ] | 8330 ] |
OLD | NEW |