This source file includes following definitions.
- GetByName
- GetAPIFeatures
- GetManifestFeatures
- GetPermissionFeatures
#include "extensions/common/features/feature_provider.h"
#include "base/basictypes.h"
#include "extensions/common/extensions_client.h"
namespace extensions {
FeatureProvider* FeatureProvider::GetByName(const std::string& name) {
return ExtensionsClient::Get()->GetFeatureProviderByName(name);
}
FeatureProvider* FeatureProvider::GetAPIFeatures() {
return GetByName("api");
}
FeatureProvider* FeatureProvider::GetManifestFeatures() {
return GetByName("manifest");
}
FeatureProvider* FeatureProvider::GetPermissionFeatures() {
return GetByName("permission");
}
}