]> git.saurik.com Git - apple/javascriptcore.git/blob - inspector/protocol/ApplicationCache.json
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / inspector / protocol / ApplicationCache.json
1 {
2 "domain": "ApplicationCache",
3 "availability": "web",
4 "types": [
5 {
6 "id": "ApplicationCacheResource",
7 "type": "object",
8 "description": "Detailed application cache resource information.",
9 "properties": [
10 { "name": "url", "type": "string", "description": "Resource url." },
11 { "name": "size", "type": "integer", "description": "Resource size." },
12 { "name": "type", "type": "string", "description": "Resource type." }
13 ]
14 },
15 {
16 "id": "ApplicationCache",
17 "type": "object",
18 "description": "Detailed application cache information.",
19 "properties": [
20 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
21 { "name": "size", "type": "number", "description": "Application cache size." },
22 { "name": "creationTime", "type": "number", "description": "Application cache creation time." },
23 { "name": "updateTime", "type": "number", "description": "Application cache update time." },
24 { "name": "resources", "type": "array", "items": { "$ref": "ApplicationCacheResource" }, "description": "Application cache resources." }
25 ]
26 },
27 {
28 "id": "FrameWithManifest",
29 "type": "object",
30 "description": "Frame identifier - manifest URL pair.",
31 "properties": [
32 { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame identifier." },
33 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
34 { "name": "status", "type": "integer", "description": "Application cache status." }
35 ]
36 }
37 ],
38 "commands": [
39 {
40 "name": "getFramesWithManifests",
41 "returns": [
42 { "name": "frameIds", "type": "array", "items": { "$ref": "FrameWithManifest" }, "description": "Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." }
43 ],
44 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache."
45 },
46 {
47 "name": "enable",
48 "description": "Enables application cache domain notifications."
49 },
50 {
51 "name": "getManifestForFrame",
52 "parameters": [
53 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
54 ],
55 "returns": [
56 { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." }
57 ],
58 "description": "Returns manifest URL for document in the given frame."
59 },
60 {
61 "name": "getApplicationCacheForFrame",
62 "parameters": [
63 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
64 ],
65 "returns": [
66 { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." }
67 ],
68 "description": "Returns relevant application cache data for the document in given frame."
69 }
70 ],
71 "events": [
72 {
73 "name": "applicationCacheStatusUpdated",
74 "parameters": [
75 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
76 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
77 { "name": "status", "type": "integer", "description": "Updated application cache status." }
78 ]
79 },
80 {
81 "name": "networkStateUpdated",
82 "parameters": [
83 { "name": "isNowOnline", "type": "boolean" }
84 ]
85 }
86 ]
87 }