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

Unified Diff: extensions/common/features/feature.h

Issue 217163003: Enable _api_features.json to block APIs from service worker contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « chrome/common/extensions/features/simple_feature.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/feature.h
diff --git a/extensions/common/features/feature.h b/extensions/common/features/feature.h
index 67201f07fddb6e3abf55566a97a5445c5c9ea858..8afc15d1dce7d7769e90bb340eb6ecf19534a5c6 100644
--- a/extensions/common/features/feature.h
+++ b/extensions/common/features/feature.h
@@ -120,6 +120,9 @@ class Feature {
// Tests whether this is an internal API or not.
virtual bool IsInternal() const = 0;
+ // Returns True for features excluded from service worker backed contexts.
+ virtual bool IsBlockedInServiceWorker() const = 0;
+
// Returns true if the feature is available to be parsed into a new extension
// manifest.
Availability IsAvailableToManifest(const std::string& extension_id,
« no previous file with comments | « chrome/common/extensions/features/simple_feature.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698