Index: Source/devtools/protocol.json |
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
index 6411b0f5e4c3b371822df7c74d479a1b27ca0e9d..4430e8ad6fcfd902fb96ceaaa74f763019084bf8 100644 |
--- a/Source/devtools/protocol.json |
+++ b/Source/devtools/protocol.json |
@@ -1686,7 +1686,7 @@ |
] |
}, |
{ |
- "domain": "ServiceWorkerCache", |
+ "domain": "CacheStorage", |
"hidden": true, |
"types": [ |
{ |
@@ -1697,14 +1697,26 @@ |
{ "name": "request", "type": "string", "description": "JSON-stringified request object." }, |
{ "name": "response", "type": "string", "description": "JSON-stringified response object." } |
] |
+ }, |
+ { |
+ "id": "CacheId", |
pfeldman
2015/04/17 07:57:36
Rename this to "Cache"
dmurph
2015/04/18 00:59:31
Done.
|
+ "type": "object", |
pfeldman
2015/04/16 10:22:53
Identifiers must be opaque strings, you should do
dmurph
2015/04/18 00:59:31
Done.
|
+ "description": "Cache identifier.", |
+ "properties": [ |
+ { "name": "securityOrigin", "type": "string", "description": "Security origin of the cache." }, |
pfeldman
2015/04/17 07:57:36
You already have an origin, cache name here. Add c
dmurph
2015/04/18 00:59:32
Cone.
|
+ { "name": "cacheName", "type": "string", "description": "The name of the cache." } |
+ ] |
} |
], |
"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": "CacheId" }, "description": "Cache ids for the security origin." } |
], |
"description": "Requests cache names." |
}, |
@@ -1712,7 +1724,7 @@ |
"name": "requestEntries", |
"async": true, |
"parameters": [ |
- { "name": "cacheName", "type": "string", "description": "Cache name." }, |
+ { "name": "cacheId", "$ref": "CacheId", "description": "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." } |
], |
@@ -1726,7 +1738,7 @@ |
"name": "deleteCache", |
"async": true, |
"parameters": [ |
- { "name": "cacheName", "type": "string", "description": "Cache name." } |
+ { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache for deletion." } |
], |
"description": "Deletes a cache." |
} |