| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [ | |
| 6 { | |
| 7 "namespace": "browsingData", | |
| 8 "types": [ | |
| 9 { | |
| 10 "id": "RemovalOptions", | |
| 11 "type": "object", | |
| 12 "description": "Options that determine exactly what data will be removed
.", | |
| 13 "properties": { | |
| 14 "since": { | |
| 15 "type": "number", | |
| 16 "optional": true, | |
| 17 "description": "Remove data accumulated on or after this date, repre
sented in milliseconds since the epoch (accessible via the <code>getTime</code>
method of the JavaScript <code>Date</code> object). If absent, defaults to 0 (wh
ich would remove all browsing data)." | |
| 18 } | |
| 19 } | |
| 20 } | |
| 21 ], | |
| 22 "functions": [ | |
| 23 { | |
| 24 "name": "remove", | |
| 25 "description": "Clears various types of browsing data stored in a user's
profile.", | |
| 26 "type": "function", | |
| 27 "parameters": [ | |
| 28 { | |
| 29 "$ref": "RemovalOptions", | |
| 30 "name": "options" | |
| 31 }, | |
| 32 { | |
| 33 "name": "dataToRemove", | |
| 34 "type": "object", | |
| 35 "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>).", | |
| 36 "properties": { | |
| 37 "appcache": { | |
| 38 "type": "boolean", | |
| 39 "optional": true, | |
| 40 "description": "Should websites' appcaches be cleared?" | |
| 41 }, | |
| 42 "cache": { | |
| 43 "type": "boolean", | |
| 44 "optional": true, | |
| 45 "description": "Should the browser's cache be cleared? Note: thi
s clears the <em>entire</em> cache: it is not limited to the range you specify." | |
| 46 }, | |
| 47 "cookies": { | |
| 48 "type": "boolean", | |
| 49 "optional": true, | |
| 50 "description": "Should the browser's cookies be cleared?" | |
| 51 }, | |
| 52 "downloads": { | |
| 53 "type": "boolean", | |
| 54 "optional": true, | |
| 55 "description": "Should the browser's download list be cleared?" | |
| 56 }, | |
| 57 "fileSystems": { | |
| 58 "type": "boolean", | |
| 59 "optional": true, | |
| 60 "description": "Should websites' file systems be cleared?" | |
| 61 }, | |
| 62 "formData": { | |
| 63 "type": "boolean", | |
| 64 "optional": true, | |
| 65 "description": "Should the browser's stored form data be cleared
?" | |
| 66 }, | |
| 67 "history": { | |
| 68 "type": "boolean", | |
| 69 "optional": true, | |
| 70 "description": "Should the browser's history be cleared?" | |
| 71 }, | |
| 72 "indexedDB": { | |
| 73 "type": "boolean", | |
| 74 "optional": true, | |
| 75 "description": "Should websites' IndexedDB data be cleared?" | |
| 76 }, | |
| 77 "localStorage": { | |
| 78 "type": "boolean", | |
| 79 "optional": true, | |
| 80 "description": "Should websites' local storage data be cleared?" | |
| 81 }, | |
| 82 "serverBoundCertificates": { | |
| 83 "type": "boolean", | |
| 84 "optional": true, | |
| 85 "description": "Should server-bound certificates be removed?" | |
| 86 }, | |
| 87 "pluginData": { | |
| 88 "type": "boolean", | |
| 89 "optional": true, | |
| 90 "description": "Should plugins' data be cleared?" | |
| 91 }, | |
| 92 "passwords": { | |
| 93 "type": "boolean", | |
| 94 "optional": true, | |
| 95 "description": "Should the stored passwords be cleared?" | |
| 96 }, | |
| 97 "webSQL": { | |
| 98 "type": "boolean", | |
| 99 "optional": true, | |
| 100 "description": "Should websites' WebSQL data be cleared?" | |
| 101 } | |
| 102 } | |
| 103 }, | |
| 104 { | |
| 105 "name": "callback", | |
| 106 "type": "function", | |
| 107 "description": "Called when deletion has completed.", | |
| 108 "optional": true, | |
| 109 "parameters": [] | |
| 110 } | |
| 111 ] | |
| 112 }, | |
| 113 { | |
| 114 "name": "removeAppcache", | |
| 115 "description": "Clears websites' appcache data.", | |
| 116 "type": "function", | |
| 117 "parameters": [ | |
| 118 { | |
| 119 "$ref": "RemovalOptions", | |
| 120 "name": "options" | |
| 121 }, | |
| 122 { | |
| 123 "name": "callback", | |
| 124 "type": "function", | |
| 125 "description": "Called when websites' appcache data has been cleared
.", | |
| 126 "optional": true, | |
| 127 "parameters": [] | |
| 128 } | |
| 129 ] | |
| 130 }, | |
| 131 { | |
| 132 "name": "removeCache", | |
| 133 "description": "Clears the browser's cache.", | |
| 134 "type": "function", | |
| 135 "parameters": [ | |
| 136 { | |
| 137 "$ref": "RemovalOptions", | |
| 138 "name": "options" | |
| 139 }, | |
| 140 { | |
| 141 "name": "callback", | |
| 142 "type": "function", | |
| 143 "description": "Called when the browser's cache has been cleared.", | |
| 144 "optional": true, | |
| 145 "parameters": [] | |
| 146 } | |
| 147 ] | |
| 148 }, | |
| 149 { | |
| 150 "name": "removeCookies", | |
| 151 "description": "Clears the browser's cookies modified within a particula
r timeframe.", | |
| 152 "type": "function", | |
| 153 "parameters": [ | |
| 154 { | |
| 155 "$ref": "RemovalOptions", | |
| 156 "name": "options" | |
| 157 }, | |
| 158 { | |
| 159 "name": "callback", | |
| 160 "type": "function", | |
| 161 "description": "Called when the browser's cookies have been cleared.
", | |
| 162 "optional": true, | |
| 163 "parameters": [] | |
| 164 } | |
| 165 ] | |
| 166 }, | |
| 167 { | |
| 168 "name": "removeDownloads", | |
| 169 "description": "Clears the browser's list of downloaded files (<em>not</
em> the downloaded files themselves).", | |
| 170 "type": "function", | |
| 171 "parameters": [ | |
| 172 { | |
| 173 "$ref": "RemovalOptions", | |
| 174 "name": "options" | |
| 175 }, | |
| 176 { | |
| 177 "name": "callback", | |
| 178 "type": "function", | |
| 179 "description": "Called when the browser's list of downloaded files h
as been cleared.", | |
| 180 "optional": true, | |
| 181 "parameters": [] | |
| 182 } | |
| 183 ] | |
| 184 }, | |
| 185 { | |
| 186 "name": "removeFileSystems", | |
| 187 "description": "Clears websites' file system data.", | |
| 188 "type": "function", | |
| 189 "parameters": [ | |
| 190 { | |
| 191 "$ref": "RemovalOptions", | |
| 192 "name": "options" | |
| 193 }, | |
| 194 { | |
| 195 "name": "callback", | |
| 196 "type": "function", | |
| 197 "description": "Called when websites' file systems have been cleared
.", | |
| 198 "optional": true, | |
| 199 "parameters": [] | |
| 200 } | |
| 201 ] | |
| 202 }, | |
| 203 { | |
| 204 "name": "removeFormData", | |
| 205 "description": "Clears the browser's stored form data (autofill).", | |
| 206 "type": "function", | |
| 207 "parameters": [ | |
| 208 { | |
| 209 "$ref": "RemovalOptions", | |
| 210 "name": "options" | |
| 211 }, | |
| 212 { | |
| 213 "name": "callback", | |
| 214 "type": "function", | |
| 215 "description": "Called when the browser's form data has been cleared
.", | |
| 216 "optional": true, | |
| 217 "parameters": [] | |
| 218 } | |
| 219 ] | |
| 220 }, | |
| 221 { | |
| 222 "name": "removeHistory", | |
| 223 "description": "Clears the browser's history.", | |
| 224 "type": "function", | |
| 225 "parameters": [ | |
| 226 { | |
| 227 "$ref": "RemovalOptions", | |
| 228 "name": "options" | |
| 229 }, | |
| 230 { | |
| 231 "name": "callback", | |
| 232 "type": "function", | |
| 233 "description": "Called when the browser's history has cleared.", | |
| 234 "optional": true, | |
| 235 "parameters": [] | |
| 236 } | |
| 237 ] | |
| 238 }, | |
| 239 { | |
| 240 "name": "removeIndexedDB", | |
| 241 "description": "Clears websites' IndexedDB data.", | |
| 242 "type": "function", | |
| 243 "parameters": [ | |
| 244 { | |
| 245 "$ref": "RemovalOptions", | |
| 246 "name": "options" | |
| 247 }, | |
| 248 { | |
| 249 "name": "callback", | |
| 250 "type": "function", | |
| 251 "description": "Called when websites' IndexedDB data has been cleare
d.", | |
| 252 "optional": true, | |
| 253 "parameters": [] | |
| 254 } | |
| 255 ] | |
| 256 }, | |
| 257 { | |
| 258 "name": "removeLocalStorage", | |
| 259 "description": "Clears websites' local storage data.", | |
| 260 "type": "function", | |
| 261 "parameters": [ | |
| 262 { | |
| 263 "$ref": "RemovalOptions", | |
| 264 "name": "options" | |
| 265 }, | |
| 266 { | |
| 267 "name": "callback", | |
| 268 "type": "function", | |
| 269 "description": "Called when websites' local storage has been cleared
.", | |
| 270 "optional": true, | |
| 271 "parameters": [] | |
| 272 } | |
| 273 ] | |
| 274 }, | |
| 275 { | |
| 276 "name": "removePluginData", | |
| 277 "description": "Clears plugins' data.", | |
| 278 "type": "function", | |
| 279 "parameters": [ | |
| 280 { | |
| 281 "$ref": "RemovalOptions", | |
| 282 "name": "options" | |
| 283 }, | |
| 284 { | |
| 285 "name": "callback", | |
| 286 "type": "function", | |
| 287 "description": "Called when plugins' data has been cleared.", | |
| 288 "optional": true, | |
| 289 "parameters": [] | |
| 290 } | |
| 291 ] | |
| 292 }, | |
| 293 { | |
| 294 "name": "removePasswords", | |
| 295 "description": "Clears the browser's stored passwords.", | |
| 296 "type": "function", | |
| 297 "parameters": [ | |
| 298 { | |
| 299 "$ref": "RemovalOptions", | |
| 300 "name": "options" | |
| 301 }, | |
| 302 { | |
| 303 "name": "callback", | |
| 304 "type": "function", | |
| 305 "description": "Called when the browser's passwords have been cleare
d.", | |
| 306 "optional": true, | |
| 307 "parameters": [] | |
| 308 } | |
| 309 ] | |
| 310 }, | |
| 311 { | |
| 312 "name": "removeWebSQL", | |
| 313 "description": "Clears websites' WebSQL data.", | |
| 314 "type": "function", | |
| 315 "parameters": [ | |
| 316 { | |
| 317 "$ref": "RemovalOptions", | |
| 318 "name": "options" | |
| 319 }, | |
| 320 { | |
| 321 "name": "callback", | |
| 322 "type": "function", | |
| 323 "description": "Called when websites' WebSQL databases have been cle
ared.", | |
| 324 "optional": true, | |
| 325 "parameters": [] | |
| 326 } | |
| 327 ] | |
| 328 } | |
| 329 ] | |
| 330 } | |
| 331 ] | |
| OLD | NEW |