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

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: Created 5 years, 10 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 | « no previous file | 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 22901c1983bffe8ab945c028a984ada6d6e6b5fd..bcc4747a415df91596fd1c7216aedabee29df047 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -4053,7 +4053,31 @@
{
"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": "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",
@@ -4084,6 +4108,18 @@
{ "name": "workerId", "type": "string" }
],
"handlers": ["browser"]
+ },
+ {
+ "name": "getRegistrations",
+ "async": true,
+ "parameters": [
+ { "name": "origin", "type": "string", "description": "Security origin of requesting ServiceWorker registrations." }
pfeldman 2015/03/06 10:43:16 What origin would we use? I am not sure the pull
horo 2015/03/09 12:33:25 Ah yes, I agree with you. I changed to push model
+ ],
+ "returns": [
+ { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" }, "description": "ServiceWorkerRegistrations related to the origin." }
+ ],
+ "description": "Returns the ServiceWorker registrations related to the origin. When origin is empty returns the all registrations.",
+ "handlers": ["browser"]
}
],
"events": [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698