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

Unified Diff: content/public/common/content_client.h

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 8 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/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index dace907b95e7ae205d4c2cbae66da1721f5f672a..8e6805f2ef222bce1906b2f2edfabe617c651965 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -157,6 +157,10 @@ class CONTENT_EXPORT ContentClient {
// trustworthy schemes should be added.
virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {}
+ // Returns whether or not V8 script extensions should be allowed for a
+ // service worker.
+ virtual bool AllowScriptExtensionForServiceWorker(const GURL& script_url);
+
// Returns true if the embedder wishes to supplement the site isolation policy
// used by the content layer. Returning true enables the infrastructure for
// out-of-process iframes, and causes the content layer to consult

Powered by Google App Engine
This is Rietveld 408576698