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