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

Unified Diff: content/child/service_worker/web_service_worker_provider_impl.h

Issue 1259213002: Move Service Worker %2f path validation logic from browser into Blink (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining nits. 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: content/child/service_worker/web_service_worker_provider_impl.h
diff --git a/content/child/service_worker/web_service_worker_provider_impl.h b/content/child/service_worker/web_service_worker_provider_impl.h
index 3d607bf98a76ea84094255a93e61862b41448575..c40cc321161b07fea1420b77f267c4124c031c8a 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.h
+++ b/content/child/service_worker/web_service_worker_provider_impl.h
@@ -39,6 +39,9 @@ class WebServiceWorkerProviderImpl
virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*);
virtual void getRegistrationForReady(
WebServiceWorkerGetRegistrationForReadyCallbacks*);
+ virtual bool validateScopeAndScriptURL(const blink::WebURL& pattern,
+ const blink::WebURL& script_url,
+ blink::WebString* error_message);
int provider_id() const;

Powered by Google App Engine
This is Rietveld 408576698