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.
7 "namespace": "browsingData",
8 "description": "Use the <code>chrome.browsingData</code> API to remove browsing data from a user's local profile.",
11 "id": "RemovalOptions",
13 "description": "Options that determine exactly what data will be removed.",
18 "description": "Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the <code>getTime</code> method of the JavaScript <code>Date</code> object). If absent, defaults to 0 (which would remove all browsing data)."
23 "description": "An object whose properties specify which origin types ought to be cleared. If this object isn't specified, it defaults to clearing only \"unprotected\" origins. Please ensure that you <em>really</em> want to remove application data before adding 'protectedWeb' or 'extensions'.",
28 "description": "Normal websites."
33 "description": "Websites that have been installed as hosted applications (be careful!)."
38 "description": "Extensions and packaged applications a user has installed (be _really_ careful!)."
47 "description": "A set of data types. Missing data types are interpreted as <code>false</code>.",
52 "description": "Websites' appcaches."
57 "description": "The browser's cache. Note: when removing data, this clears the <em>entire</em> cache: it is not limited to the range you specify."
62 "description": "The browser's cookies."
67 "description": "The browser's download list."
72 "description": "Websites' file systems."
77 "description": "The browser's stored form data."
82 "description": "The browser's history."
87 "description": "Websites' IndexedDB data."
92 "description": "Websites' local storage data."
94 "serverBoundCertificates": {
97 "description": "Server-bound certificates."
102 "description": "Stored passwords."
107 "description": "Plugins' data."
112 "description": "Service Workers."
117 "description": "Websites' WebSQL data."
125 "description": "Reports which types of data are currently selected in the 'Clear browsing data' settings UI. Note: some of the data types included in this API are not available in the settings UI, and some UI settings control more than one data type listed here.",
137 "$ref": "RemovalOptions"
140 "$ref": "DataTypeSet",
141 "description": "All of the types will be present in the result, with values of <code>true</code> if they are both selected to be removed and permitted to be removed, otherwise <code>false</code>."
143 "dataRemovalPermitted": {
144 "$ref": "DataTypeSet",
145 "description": "All of the types will be present in the result, with values of <code>true</code> if they are permitted to be removed (e.g., by enterprise policy) and <code>false</code> if not."
155 "description": "Clears various types of browsing data stored in a user's profile.",
159 "$ref": "RemovalOptions",
163 "name": "dataToRemove",
164 "$ref": "DataTypeSet",
165 "description": "The set of data types to remove."
170 "description": "Called when deletion has completed.",
177 "name": "removeAppcache",
178 "description": "Clears websites' appcache data.",
182 "$ref": "RemovalOptions",
188 "description": "Called when websites' appcache data has been cleared.",
195 "name": "removeCache",
196 "description": "Clears the browser's cache.",
200 "$ref": "RemovalOptions",
206 "description": "Called when the browser's cache has been cleared.",
213 "name": "removeCookies",
214 "description": "Clears the browser's cookies and server-bound certificates modified within a particular timeframe.",
218 "$ref": "RemovalOptions",
224 "description": "Called when the browser's cookies and server-bound certificates have been cleared.",
231 "name": "removeDownloads",
232 "description": "Clears the browser's list of downloaded files (<em>not</em> the downloaded files themselves).",
236 "$ref": "RemovalOptions",
242 "description": "Called when the browser's list of downloaded files has been cleared.",
249 "name": "removeFileSystems",
250 "description": "Clears websites' file system data.",
254 "$ref": "RemovalOptions",
260 "description": "Called when websites' file systems have been cleared.",
267 "name": "removeFormData",
268 "description": "Clears the browser's stored form data (autofill).",
272 "$ref": "RemovalOptions",
278 "description": "Called when the browser's form data has been cleared.",
285 "name": "removeHistory",
286 "description": "Clears the browser's history.",
290 "$ref": "RemovalOptions",
296 "description": "Called when the browser's history has cleared.",
303 "name": "removeIndexedDB",
304 "description": "Clears websites' IndexedDB data.",
308 "$ref": "RemovalOptions",
314 "description": "Called when websites' IndexedDB data has been cleared.",
321 "name": "removeLocalStorage",
322 "description": "Clears websites' local storage data.",
326 "$ref": "RemovalOptions",
332 "description": "Called when websites' local storage has been cleared.",
339 "name": "removePluginData",
340 "description": "Clears plugins' data.",
344 "$ref": "RemovalOptions",
350 "description": "Called when plugins' data has been cleared.",
357 "name": "removePasswords",
358 "description": "Clears the browser's stored passwords.",
362 "$ref": "RemovalOptions",
368 "description": "Called when the browser's passwords have been cleared.",
375 "name": "removeWebSQL",
376 "description": "Clears websites' WebSQL data.",
380 "$ref": "RemovalOptions",
386 "description": "Called when websites' WebSQL databases have been cleared.",