protocol: api to register schemes that can handle service worker
This commit is contained in:
parent
5e9aca4524
commit
855d49100f
12 changed files with 86 additions and 8 deletions
|
@ -92,6 +92,9 @@ class Protocol : public mate::Wrappable {
|
|||
// Register schemes to standard scheme list.
|
||||
void RegisterStandardSchemes(const std::vector<std::string>& schemes);
|
||||
|
||||
// Register schemes that can handle service worker.
|
||||
void RegisterServiceWorkerSchemes(const std::vector<std::string>& schemes);
|
||||
|
||||
// Register the protocol with certain request job.
|
||||
template<typename RequestJob>
|
||||
void RegisterProtocol(const std::string& scheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue