Index: Source/platform/weborigin/SchemeRegistry.h |
diff --git a/Source/platform/weborigin/SchemeRegistry.h b/Source/platform/weborigin/SchemeRegistry.h |
index cc3e8636c8f67a528dbe25e438f6e6ac6b954b8f..9225da357e0375e8dfaf7de01191ad8c8d9671dc 100644 |
--- a/Source/platform/weborigin/SchemeRegistry.h |
+++ b/Source/platform/weborigin/SchemeRegistry.h |
@@ -87,6 +87,9 @@ public: |
// "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat differently from "webby" schemes. |
static bool shouldTreatURLSchemeAsLegacy(const String& scheme); |
+ // Allows 'HTTP/HTTPS' and 'chrome-extension' schemes to register ServiceWorkers |
+ static bool shouldAllowServiceWorkers(const String& scheme); |
+ |
// Allow resources from some schemes to load on a page, regardless of its |
// Content Security Policy. |
// This enum should be kept in sync with public/web/WebSecurityPolicy.h. |