Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: extensions/common/api/web_view_internal.json

Issue 567643002: Moving cleardata extension function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/api/web_view/web_view_internal_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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": "webViewInternal", 7 "namespace": "webViewInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "extensions/browser/api/web_view/web_view_internal_api.h " 10 "implemented_in": "extensions/browser/api/web_view/web_view_internal_api.h "
11 }, 11 },
12 "types": [
13 {
14 "id": "DataTypeSet",
15 "type": "object",
16 "description": "A set of data types. Missing data types are interpreted as <code>false</code>.",
17 "properties": {
18 "appcache": {
19 "type": "boolean",
20 "optional": true,
21 "description": "Websites' appcaches."
22 },
23 "cookies": {
24 "type": "boolean",
25 "optional": true,
26 "description": "The browser's cookies."
27 },
28 "fileSystems": {
29 "type": "boolean",
30 "optional": true,
31 "description": "Websites' file systems."
32 },
33 "indexedDB": {
34 "type": "boolean",
35 "optional": true,
36 "description": "Websites' IndexedDB data."
37 },
38 "localStorage": {
39 "type": "boolean",
40 "optional": true,
41 "description": "Websites' local storage data."
42 },
43 "webSQL": {
44 "type": "boolean",
45 "optional": true,
46 "description": "Websites' WebSQL data."
47 }
48 }
49 },
50 {
51 "id": "RemovalOptions",
52 "type": "object",
53 "description": "Options that determine exactly what data will be removed .",
54 "properties": {
55 "since": {
56 "type": "number",
57 "optional": true,
58 "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)."
59 }
60 }
61 }
62 ],
12 "functions": [ 63 "functions": [
13 { 64 {
14 "name": "executeScript", 65 "name": "executeScript",
15 "type": "function", 66 "type": "function",
16 "description": "Injects JavaScript code into a <webview> page.", 67 "description": "Injects JavaScript code into a <webview> page.",
17 "parameters": [ 68 "parameters": [
18 { 69 {
19 "type": "integer", 70 "type": "integer",
20 "name": "instanceId", 71 "name": "instanceId",
21 "description": "The instance ID of the guest <webview> process." 72 "description": "The instance ID of the guest <webview> process."
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 }, 406 },
356 { 407 {
357 "name": "terminate", 408 "name": "terminate",
358 "type": "function", 409 "type": "function",
359 "parameters": [ 410 "parameters": [
360 { 411 {
361 "type": "integer", 412 "type": "integer",
362 "name": "instanceId" 413 "name": "instanceId"
363 } 414 }
364 ] 415 ]
416 },
417 {
418 "name": "clearData",
419 "type": "function",
420 "description": "Clears various types of browsing data stored in a storag e partition of a <webview>.",
421 "parameters": [
422 {
423 "type": "integer",
424 "name": "instanceId",
425 "description": "The instance ID of the guest <webview> process."
426 },
427 {
428 "$ref": "RemovalOptions",
429 "name": "options"
430 },
431 {
432 "name": "dataToRemove",
433 "$ref": "DataTypeSet",
434 "description": "The set of data types to remove."
435 },
436 {
437 "name": "callback",
438 "type": "function",
439 "description": "Called when deletion has completed.",
440 "optional": true,
441 "parameters": []
442 }
443 ]
365 } 444 }
366 ] 445 ]
367 } 446 }
368 ] 447 ]
OLDNEW
« no previous file with comments | « extensions/browser/api/web_view/web_view_internal_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698