protocol: api to register schemes that can handle service worker

This commit is contained in:
Robo 2015-12-09 00:51:46 +05:30
parent 5e9aca4524
commit 855d49100f
12 changed files with 86 additions and 8 deletions

View file

@ -38,6 +38,10 @@ A standard `scheme` adheres to what RFC 3986 calls
[generic URI syntax](https://tools.ietf.org/html/rfc3986#section-3). This
includes `file:` and `filesystem:`.
### `protocol.registerServiceWorkerSchemes(schemes)`
* `schemes` Array - Custom schemes to be registered to handle service workers.
### `protocol.registerFileProtocol(scheme, handler[, completion])`
* `scheme` String