Index: Source/devtools/protocol.json |
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
index e523dfba81ef3064658dc432f7ceee874e48ee5f..7ba799e8dcc937aeb90b056f95ab706b71fc6d06 100644 |
--- a/Source/devtools/protocol.json |
+++ b/Source/devtools/protocol.json |
@@ -1709,7 +1709,7 @@ |
] |
}, |
{ |
- "domain": "ServiceWorkerCache", |
+ "domain": "CacheStorage", |
"hidden": true, |
"types": [ |
{ |
@@ -1720,14 +1720,27 @@ |
{ "name": "request", "type": "string", "description": "JSON-stringified request object." }, |
{ "name": "response", "type": "string", "description": "JSON-stringified response object." } |
] |
+ }, |
+ { |
+ "id": "Cache", |
+ "type": "object", |
+ "description": "Cache identifier.", |
+ "properties": [ |
+ { "name": "securityOrigin", "type": "string", "description": "Security origin of the cache." }, |
+ { "name": "cacheName", "type": "string", "description": "The name of the cache." }, |
+ { "name": "cacheId", "type": "string", "description": "An opaque unique id of the cache." } |
pfeldman
2015/04/20 18:14:31
Move this above to make it the first field, introd
dmurph
2015/04/20 20:58:17
Done.
|
+ ] |
} |
], |
"commands": [ |
{ |
"name": "requestCacheNames", |
"async": true, |
+ "parameters": [ |
+ { "name": "securityOrigin", "type": "string", "description": "Security origin." } |
+ ], |
"returns": [ |
- { "name": "cacheNames", "type": "array", "items": { "type": "string" }, "description": "Cache names for origin." } |
+ { "name": "cacheIds", "type": "array", "items": { "$ref": "Cache" }, "description": "Cache ids for the security origin." } |
pfeldman
2015/04/20 18:14:31
name: caches.
dmurph
2015/04/20 20:58:17
Done.
|
], |
"description": "Requests cache names." |
}, |
@@ -1735,7 +1748,7 @@ |
"name": "requestEntries", |
"async": true, |
"parameters": [ |
- { "name": "cacheName", "type": "string", "description": "Cache name." }, |
+ { "name": "cacheId", "type": "string", "description": "ID of cache to get entries from." }, |
{ "name": "skipCount", "type": "integer", "description": "Number of records to skip." }, |
{ "name": "pageSize", "type": "integer", "description": "Number of records to fetch." } |
], |
@@ -1749,7 +1762,7 @@ |
"name": "deleteCache", |
"async": true, |
"parameters": [ |
- { "name": "cacheName", "type": "string", "description": "Cache name." } |
+ { "name": "cacheId", "type": "string", "description": "Id of cache for deletion." } |
], |
"description": "Deletes a cache." |
} |