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

Unified Diff: content/public/browser/content_browser_client.h

Issue 625533002: Respect content settings for Service Worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testing
Patch Set: better diff Created 6 years, 2 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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 22531b8b5df5f7b10adde3e2ca411ea9e4439d4c..874ee80ef50f480f78bea323f9a3d13da79f8850 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -274,6 +274,13 @@ class CONTENT_EXPORT ContentBrowserClient {
const GURL& first_party,
ResourceContext* context);
+ // Allow the embedder to control if a Service Worker can be associated
+ // with the given scope.
+ // This is called on the IO thread.
+ virtual bool AllowServiceWorker(const GURL& scope,
+ const GURL& document_url,
+ content::ResourceContext* context);
+
// Allow the embedder to control if the given cookie can be read.
// This is called on the IO thread.
virtual bool AllowGetCookie(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698