Skip to content

Commit 3f4dbfa

Browse files
committed
Roll protocol to r488555
1 parent 6a7416a commit 3f4dbfa

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

externs/protocol_externs.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,21 @@ Protocol.CacheStorageAgent.DeleteEntryResponse;
23222322
* @return {!Promise<!Protocol.CacheStorageAgent.DeleteEntryResponse>} */
23232323
Protocol.CacheStorageAgent.prototype.invoke_deleteEntry = function(obj) {};
23242324

2325+
/**
2326+
* @param {Protocol.CacheStorage.CacheId} cacheId
2327+
* @param {string} requestURL
2328+
* @return {!Promise<?Protocol.CacheStorage.CachedResponse>}
2329+
*/
2330+
Protocol.CacheStorageAgent.prototype.requestCachedResponse = function(cacheId, requestURL) {};
2331+
/** @typedef {!{cacheId: Protocol.CacheStorage.CacheId, requestURL: string}} */
2332+
Protocol.CacheStorageAgent.RequestCachedResponseRequest;
2333+
/** @typedef {!{response: Protocol.CacheStorage.CachedResponse}} */
2334+
Protocol.CacheStorageAgent.RequestCachedResponseResponse;
2335+
/**
2336+
* @param {!Protocol.CacheStorageAgent.RequestCachedResponseRequest} obj
2337+
* @return {!Promise<!Protocol.CacheStorageAgent.RequestCachedResponseResponse>} */
2338+
Protocol.CacheStorageAgent.prototype.invoke_requestCachedResponse = function(obj) {};
2339+
23252340
/** @typedef {string} */
23262341
Protocol.CacheStorage.CacheId;
23272342

@@ -2330,6 +2345,9 @@ Protocol.CacheStorage.DataEntry;
23302345

23312346
/** @typedef {!{cacheId:(Protocol.CacheStorage.CacheId), securityOrigin:(string), cacheName:(string)}} */
23322347
Protocol.CacheStorage.Cache;
2348+
2349+
/** @typedef {!{headers:(!Object), body:(string)}} */
2350+
Protocol.CacheStorage.CachedResponse;
23332351
/** @interface */
23342352
Protocol.CacheStorageDispatcher = function() {};
23352353
Protocol.DOMStorage = {};

json/browser_protocol.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,15 @@
20252025
{ "name": "securityOrigin", "type": "string", "description": "Security origin of the cache." },
20262026
{ "name": "cacheName", "type": "string", "description": "The name of the cache." }
20272027
]
2028+
},
2029+
{
2030+
"id": "CachedResponse",
2031+
"type": "object",
2032+
"description": "Cached response",
2033+
"properties": [
2034+
{ "name": "headers", "type": "object", "description": "Response headers" },
2035+
{ "name": "body", "type": "string", "description": "Entry content, base64-encoded." }
2036+
]
20282037
}
20292038
],
20302039
"commands": [
@@ -2065,6 +2074,17 @@
20652074
{ "name": "request", "type": "string", "description": "URL spec of the request." }
20662075
],
20672076
"description": "Deletes a cache entry."
2077+
},
2078+
{
2079+
"name": "requestCachedResponse",
2080+
"parameters": [
2081+
{ "name": "cacheId", "$ref": "CacheId", "description": "Id of cache that contains the enty." },
2082+
{ "name": "requestURL", "type": "string", "description": "URL spec of the request." }
2083+
],
2084+
"returns": [
2085+
{ "name": "response", "$ref": "CachedResponse", "description": "Response read from the cache."}
2086+
],
2087+
"description": "Fetches cache entry."
20682088
}
20692089
]
20702090
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.488475",
3+
"version": "0.0.488555",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

0 commit comments

Comments
 (0)