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

Unified Diff: Source/web/WebSecurityPolicy.cpp

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/platform/weborigin/SchemeRegistry.cpp ('k') | public/web/WebSecurityPolicy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSecurityPolicy.cpp
diff --git a/Source/web/WebSecurityPolicy.cpp b/Source/web/WebSecurityPolicy.cpp
index 41e77211828767251ea50640bcb7b505f83664a9..df415c8e00387d4ab75cc2ee6fc2ee399ea6c3fd 100644
--- a/Source/web/WebSecurityPolicy.cpp
+++ b/Source/web/WebSecurityPolicy.cpp
@@ -81,6 +81,11 @@ void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers(const WebStrin
SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme);
}
+void WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI(const WebString& scheme)
+{
+ SchemeRegistry::registerURLSchemeAsSupportingFetchAPI(scheme);
+}
+
void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme)
{
SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);
« no previous file with comments | « Source/platform/weborigin/SchemeRegistry.cpp ('k') | public/web/WebSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698