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

Unified Diff: Source/devtools/protocol.json

Issue 984723003: Implement ServiceWorkerRegistration related DevTools events [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: change to push model Created 5 years, 9 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
« no previous file with comments | « Source/devtools/front_end/sdk/ServiceWorkerManager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 030efdabfc58d9df9a80086cd7b9b1c6afac7cf3..b7e18df0b228ebd2b404877d361c9dd25f4d643b 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -4037,7 +4037,32 @@
{
"domain": "ServiceWorker",
"hidden": true,
- "types": [],
+ "types": [
+ {
+ "id": "ServiceWorkerRegistration",
+ "type": "object",
+ "description": "ServiceWorker registration.",
+ "properties": [
+ { "name": "registrationId", "type": "string" },
+ { "name": "scopeURL", "type": "string" },
+ { "name": "activeVersion", "optional": true, "$ref": "ServiceWorkerVersion" },
+ { "name": "waitingVersion", "optional": true, "$ref": "ServiceWorkerVersion" },
+ { "name": "installingVersion", "optional": true, "$ref": "ServiceWorkerVersion" }
+ ]
+ },
+ {
+ "id": "ServiceWorkerVersion",
+ "type": "object",
+ "description": "ServiceWorker version.",
+ "properties": [
+ { "name": "versionId", "type": "string" },
+ { "name": "registrationId", "type": "string" },
+ { "name": "scriptURL", "type": "string" },
+ { "name": "runningStatus", "type": "string", "enum": ["stopped", "starting", "running", "stopping"] },
+ { "name": "status", "type": "string", "enum": ["new", "installing", "installed", "activating", "activated", "redundant"] }
+ ]
+ }
+ ],
"commands": [
{
"name": "enable",
@@ -4079,6 +4104,27 @@
{ "name": "message", "type": "string" }
],
"handlers": ["browser"]
+ },
+ {
+ "name": "workerRegistrationUpdated",
+ "parameters": [
+ { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "workerVersionUpdated",
+ "parameters": [
+ { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "workerRegistrationDeleted",
+ "parameters": [
+ { "name": "registrationId", "type": "string" }
+ ],
+ "handlers": ["browser"]
}
]
},
« no previous file with comments | « Source/devtools/front_end/sdk/ServiceWorkerManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698