Chromium Code Reviews| 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": [ |