Index: content/public/common/origin_util.h |
diff --git a/content/public/common/origin_util.h b/content/public/common/origin_util.h |
index e3efd6b5213ec86a068fc54083edf95e24ac331a..f3009524346b62757d8731d68f443129e0064ee1 100644 |
--- a/content/public/common/origin_util.h |
+++ b/content/public/common/origin_util.h |
@@ -21,6 +21,10 @@ bool CONTENT_EXPORT IsOriginSecure(const GURL& url); |
// Resets the internal schemes/origins whitelist. Used only for testing. |
void CONTENT_EXPORT ResetSecureSchemesAndOriginsForTesting(); |
+// Returns true if the origin can register a service worker. Scheme must be |
+// http (localhost only), https, or a custom-set secure scheme. |
+bool CONTENT_EXPORT OriginCanAccessServiceWorkers(const GURL& url); |
+ |
} // namespace content |
#endif // CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_ |