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

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

Issue 1313733006: Allowing registering arbitrary schemes as supporting the fetch API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: SupportingFetchAPI Created 5 years, 4 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 e85d2bbec88c2cfb7286074719622f4faf9349b4..ff56b0280c5fac4b5d93ff542aedf1726cb0df97 100644
--- a/Source/platform/weborigin/SchemeRegistry.h
+++ b/Source/platform/weborigin/SchemeRegistry.h
@@ -91,6 +91,10 @@ public:
static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme);
static bool shouldTreatURLSchemeAsAllowingServiceWorkers(const String& scheme);
+ // Schemes that can register as supporting the Fetch API.
tyoshino (SeeGerritForStatus) 2015/08/26 07:24:48 how about "Schemes that are treated as supporting
not at google - send to devlin 2015/08/26 16:30:32 Done. I'll go with the former, looks consistent wi
+ static void registerURLSchemeAsSupportingFetchAPI(const String& scheme);
+ static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme);
pdr. 2015/08/25 21:25:10 Why is there no unregister?
not at google - send to devlin 2015/08/25 22:04:45 No need for it in our use case, which is registeri
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698