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

Unified Diff: extensions/common/extensions_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 @tott Created 4 years, 7 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 | « extensions/common/extension_messages.h ('k') | extensions/common/extensions_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extensions_client.h
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index 7b0e9d3cff291020d882f33f8d7373bf07ddebb2..b897fb889e84c025053eacb83628950cf96fb397 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -131,6 +131,13 @@ class ExtensionsClient {
virtual std::set<base::FilePath> GetBrowserImagePaths(
const Extension* extension);
+ // Returns whether or not extension APIs are allowed in extension service
+ // workers.
+ // This is currently disallowed as the code to support this is work in
+ // progress.
+ // Can be overridden in tests.
+ virtual bool ExtensionAPIEnabledInExtensionServiceWorkers() const;
+
// Return the extensions client.
static ExtensionsClient* Get();
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/common/extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698