| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "browsingData", | 7 "namespace": "browsingData", |
| 8 "types": [ | 8 "types": [ |
| 9 { | 9 { |
| 10 "id": "RemovalOptions", | 10 "id": "RemovalOptions", |
| 11 "type": "object", | 11 "type": "object", |
| 12 "description": "Options that determine exactly what data will be removed
.", | 12 "description": "Options that determine exactly what data will be removed
.", |
| 13 "properties": { | 13 "properties": { |
| 14 "since": { | 14 "since": { |
| 15 "type": "number", | 15 "type": "number", |
| 16 "optional": true, | 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)." | 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 "originTypes": { |
| 20 "type": "object", |
| 21 "optional": true, |
| 22 "description": "An object whose properties specify which origin type
s ought to be cleared. If this object isn't specified, it defaults to clearing o
nly \"unprotected\" origins. Please ensure that you <em>really</em> want to remo
ve application data before adding 'protectedWeb' or 'extensions'.", |
| 23 "properties": { |
| 24 "unprotectedWeb": { |
| 25 "type": "boolean", |
| 26 "optional": true, |
| 27 "description": "Normal websites." |
| 28 }, |
| 29 "protectedWeb": { |
| 30 "type": "boolean", |
| 31 "optional": true, |
| 32 "description": "Websites that have been installed as hosted appl
ications (be careful!)." |
| 33 }, |
| 34 "extension": { |
| 35 "type": "boolean", |
| 36 "optional": true, |
| 37 "description": "Extensions and packaged applications a user has
installed (be _really_ careful!)." |
| 38 } |
| 39 } |
| 18 } | 40 } |
| 19 } | 41 } |
| 20 } | 42 } |
| 21 ], | 43 ], |
| 22 "functions": [ | 44 "functions": [ |
| 23 { | 45 { |
| 24 "name": "remove", | 46 "name": "remove", |
| 25 "description": "Clears various types of browsing data stored in a user's
profile.", | 47 "description": "Clears various types of browsing data stored in a user's
profile.", |
| 26 "type": "function", | 48 "type": "function", |
| 27 "parameters": [ | 49 "parameters": [ |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 "type": "function", | 344 "type": "function", |
| 323 "description": "Called when websites' WebSQL databases have been cle
ared.", | 345 "description": "Called when websites' WebSQL databases have been cle
ared.", |
| 324 "optional": true, | 346 "optional": true, |
| 325 "parameters": [] | 347 "parameters": [] |
| 326 } | 348 } |
| 327 ] | 349 ] |
| 328 } | 350 } |
| 329 ] | 351 ] |
| 330 } | 352 } |
| 331 ] | 353 ] |
| OLD | NEW |