| 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 "origin_types": { |
| 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 'protected_web'.", |
| 23 "properties": { |
| 24 "unprotected_web": { |
| 25 "type": "boolean", |
| 26 "optional": true, |
| 27 "description": "Normal websites." |
| 28 }, |
| 29 "protected_web": { |
| 30 "type": "boolean", |
| 31 "optional": true, |
| 32 "description": "Websites that have been installed as hosted appl
ications." |
| 33 } |
| 34 } |
| 18 } | 35 } |
| 19 } | 36 } |
| 20 } | 37 } |
| 21 ], | 38 ], |
| 22 "functions": [ | 39 "functions": [ |
| 23 { | 40 { |
| 24 "name": "remove", | 41 "name": "remove", |
| 25 "description": "Clears various types of browsing data stored in a user's
profile.", | 42 "description": "Clears various types of browsing data stored in a user's
profile.", |
| 26 "type": "function", | 43 "type": "function", |
| 27 "parameters": [ | 44 "parameters": [ |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 "type": "function", | 339 "type": "function", |
| 323 "description": "Called when websites' WebSQL databases have been cle
ared.", | 340 "description": "Called when websites' WebSQL databases have been cle
ared.", |
| 324 "optional": true, | 341 "optional": true, |
| 325 "parameters": [] | 342 "parameters": [] |
| 326 } | 343 } |
| 327 ] | 344 ] |
| 328 } | 345 } |
| 329 ] | 346 ] |
| 330 } | 347 } |
| 331 ] | 348 ] |
| OLD | NEW |