#ifndef CHROME_COMMON_EXTENSIONS_FEATURES_CHROME_CHANNEL_FEATURE_FILTER_H_
#define CHROME_COMMON_EXTENSIONS_FEATURES_CHROME_CHANNEL_FEATURE_FILTER_H_
#include "chrome/common/chrome_version_info.h"
#include "extensions/common/features/simple_feature_filter.h"
namespace extensions {
class ChromeChannelFeatureFilter : public SimpleFeatureFilter {
public:
explicit ChromeChannelFeatureFilter(SimpleFeature* feature);
virtual ~ChromeChannelFeatureFilter();
virtual std::string Parse(const base::DictionaryValue* value) OVERRIDE;
virtual Feature::Availability IsAvailableToManifest(
const std::string& extension_id,
Manifest::Type type,
Feature::Location location,
int manifest_version,
Feature::Platform platform) const OVERRIDE;
private:
bool channel_has_been_set_;
chrome::VersionInfo::Channel channel_;
};
}
#endif