Chromium Code Reviews| 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": "array", | |
|
Bernhard Bauer
2012/06/04 11:20:16
Would it make sense to have this as an object with
Mike West
2012/06/04 12:23:39
It might. It probably does, actually.
I should ha
| |
| 21 "optional": true, | |
| 22 "description": "Array of origin types that should be effected: 'unpr otected_web' refers to normal websites, 'protected_web' refers to websites that have been installed as hosted applications. This setting defaults to ['unprotect ed_web']. Please ensure that you <em>really</em> want to remove application data before adding 'protected_web'.", | |
|
Bernhard Bauer
2012/06/04 11:20:16
Nit: "affected"
Mike West
2012/06/04 12:23:39
Done.
| |
| 23 "items": { | |
| 24 "type": "string", | |
| 25 "enum": ["unprotected_web", "protected_web"] | |
| 26 } | |
| 18 } | 27 } |
| 19 } | 28 } |
| 20 } | 29 } |
| 21 ], | 30 ], |
| 22 "functions": [ | 31 "functions": [ |
| 23 { | 32 { |
| 24 "name": "remove", | 33 "name": "remove", |
| 25 "description": "Clears various types of browsing data stored in a user's profile.", | 34 "description": "Clears various types of browsing data stored in a user's profile.", |
| 26 "type": "function", | 35 "type": "function", |
| 27 "parameters": [ | 36 "parameters": [ |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 "type": "function", | 331 "type": "function", |
| 323 "description": "Called when websites' WebSQL databases have been cle ared.", | 332 "description": "Called when websites' WebSQL databases have been cle ared.", |
| 324 "optional": true, | 333 "optional": true, |
| 325 "parameters": [] | 334 "parameters": [] |
| 326 } | 335 } |
| 327 ] | 336 ] |
| 328 } | 337 } |
| 329 ] | 338 ] |
| 330 } | 339 } |
| 331 ] | 340 ] |
| OLD | NEW |