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

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

Issue 2705513002: Extensions: Only create Web request rules registry if Declarative Web Request is enabled. (Closed)
Patch Set: Correct comment. Created 3 years, 10 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/features/complex_feature.cc ('k') | extensions/common/features/simple_feature.h » ('j') | 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 d3179bb9b2a21b40a75ddc808f05296699275590..0664e1737f04e3f7f2eb738183a971a3e2b1f7d7 100644
--- a/extensions/common/features/feature.h
+++ b/extensions/common/features/feature.h
@@ -10,6 +10,7 @@
#include "base/strings/string_piece.h"
#include "base/values.h"
+#include "components/version_info/version_info.h"
#include "extensions/common/manifest.h"
class GURL;
@@ -136,6 +137,12 @@ class Feature {
const GURL& url,
Platform platform) const = 0;
+ // Returns the availability of the feature on the given |channel|. The
+ // availability result will either be IS_AVAILABLE, UNSUPPORTED_CHANNEL or
+ // NOT_PRESENT.
+ virtual Availability IsAvailableToChannel(
+ version_info::Channel channel) const = 0;
+
// Returns true if the feature is available to the current environment,
// without needing to know information about an Extension or any other
// contextual information. Typically used when the Feature is purely
« no previous file with comments | « extensions/common/features/complex_feature.cc ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698