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

Unified Diff: Source/devtools/protocol.json

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments and rebase Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 9bfb6af8e9d9f1abb32e0cb210dc2ac85a775f2c..5bfe84bf32dfe45735f60375bc0ada85d68525ad 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -1709,10 +1709,15 @@
]
},
{
- "domain": "ServiceWorkerCache",
+ "domain": "CacheStorage",
"hidden": true,
"types": [
{
+ "id": "CacheId",
+ "type": "string",
+ "description": "Unique identifier of the Cache object."
+ },
+ {
"id": "DataEntry",
"type": "object",
"description": "Data entry.",
@@ -1720,14 +1725,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": "cacheId", "$ref": "CacheId", "description": "An opaque unique id of the cache." },
+ { "name": "securityOrigin", "type": "string", "description": "Security origin of the cache." },
+ { "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": "caches", "type": "array", "items": { "$ref": "Cache" }, "description": "Caches for the security origin." }
],
"description": "Requests cache names."
},
@@ -1735,7 +1753,7 @@
"name": "requestEntries",
"async": true,
"parameters": [
- { "name": "cacheName", "type": "string", "description": "Cache name." },
+ { "name": "cacheId", "$ref": "CacheId", "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 +1767,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."
}

Powered by Google App Engine
This is Rietveld 408576698