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

Unified Diff: Source/platform/weborigin/SchemeRegistry.h

Issue 1191793003: [Service Worker Registration] removed protocolIsInHTTPFamily and replaced with SchemeRegistry check (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Edited SchemeRegistry and WebSecurityPolicy Created 5 years, 6 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: Source/platform/weborigin/SchemeRegistry.h
diff --git a/Source/platform/weborigin/SchemeRegistry.h b/Source/platform/weborigin/SchemeRegistry.h
index cc3e8636c8f67a528dbe25e438f6e6ac6b954b8f..6f7788cb29d674cdcd89191236f57322e1c9b729 100644
--- a/Source/platform/weborigin/SchemeRegistry.h
+++ b/Source/platform/weborigin/SchemeRegistry.h
@@ -87,6 +87,10 @@ public:
// "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat differently from "webby" schemes.
static bool shouldTreatURLSchemeAsLegacy(const String& scheme);
+ // Schemes that can register a service worker
Devlin 2015/06/23 20:53:47 nit: Add a period to the comment.
+ static void registerURLSchemeAsAllowServiceWorkers(const String& scheme);
Devlin 2015/06/23 20:53:47 registerURLSchemeAsAllowServiceWorkers sounds a li
+ static bool shouldTreatURLSchemeAsAllowServiceWorkers(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.
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698