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

Unified Diff: chrome/common/extensions/features/api_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 | « no previous file | chrome/common/extensions/features/api_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/api_feature.h
diff --git a/chrome/common/extensions/features/api_feature.h b/chrome/common/extensions/features/api_feature.h
index 92e060ee8a1ed10b83933f37303d1fff09f27191..511b0353f29f63d39294054890d207edc37651a5 100644
--- a/chrome/common/extensions/features/api_feature.h
+++ b/chrome/common/extensions/features/api_feature.h
@@ -14,14 +14,17 @@ class APIFeature : public SimpleFeature {
APIFeature();
virtual ~APIFeature();
+ // extensions::Feature:
virtual bool IsInternal() const OVERRIDE;
+ virtual bool IsBlockedInServiceWorker() const OVERRIDE;
virtual std::string Parse(const base::DictionaryValue* value) OVERRIDE;
private:
bool internal_;
+ bool blocked_in_service_worker_;
};
-} // extensions
+} // namespace extensions
#endif // CHROME_COMMON_EXTENSIONS_FEATURES_API_FEATURE_H_
« no previous file with comments | « no previous file | chrome/common/extensions/features/api_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698