Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: content/public/common/origin_util.h

Issue 1192013003: [Extension ServiceWorkers] Allow service worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Took out extra reload Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698