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

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: Added comments to test 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
« no previous file with comments | « content/public/common/content_client.h ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bb050c94327f26842ecbc7e0c274a8d4152346bd 100644
--- a/content/public/common/origin_util.h
+++ b/content/public/common/origin_util.h
@@ -18,8 +18,12 @@ namespace content {
// See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
bool CONTENT_EXPORT IsOriginSecure(const GURL& url);
+// 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);
+
// Resets the internal schemes/origins whitelist. Used only for testing.
-void CONTENT_EXPORT ResetSecureSchemesAndOriginsForTesting();
+void CONTENT_EXPORT ResetSchemesAndOriginsWhitelistForTesting();
} // namespace content
« no previous file with comments | « content/public/common/content_client.h ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698