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

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: http-like #2 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
« no previous file with comments | « Source/modules/fetch/FetchManager.cpp ('k') | Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/SchemeRegistry.h
diff --git a/Source/platform/weborigin/SchemeRegistry.h b/Source/platform/weborigin/SchemeRegistry.h
index e85d2bbec88c2cfb7286074719622f4faf9349b4..3e1edd332be232ad97f390d51c9f61ec8e1a35fa 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);
+ // HTTP-like schemes that are treated as supporting the Fetch API.
+ static void registerURLSchemeAsSupportingFetchAPI(const String& scheme);
+ static bool shouldTreatURLSchemeAsSupportingFetchAPI(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/fetch/FetchManager.cpp ('k') | Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698