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..5d4c9b807151bb0fdb63833cbff206163804252b 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& first_party, |
+ 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, |