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

Unified Diff: chrome/common/extensions/features/simple_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
Index: chrome/common/extensions/features/simple_feature.h
diff --git a/chrome/common/extensions/features/simple_feature.h b/chrome/common/extensions/features/simple_feature.h
index b3716b7968ac63f6eb8d03c2c14be667d084b565..437204ab19db16e5b638248f6493535d3691fcf6 100644
--- a/chrome/common/extensions/features/simple_feature.h
+++ b/chrome/common/extensions/features/simple_feature.h
@@ -87,6 +87,7 @@ class SimpleFeature : public Feature {
virtual std::set<Context>* GetContexts() OVERRIDE;
virtual bool IsInternal() const OVERRIDE;
+ virtual bool IsBlockedInServiceWorker() const OVERRIDE;
virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE;
static bool IsIdInWhitelist(const std::string& extension_id,
« no previous file with comments | « chrome/common/extensions/features/complex_feature_unittest.cc ('k') | chrome/common/extensions/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698