root/extensions/common/features/feature_provider.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. GetByName
  2. GetAPIFeatures
  3. GetManifestFeatures
  4. GetPermissionFeatures

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/common/features/feature_provider.h"

#include "base/basictypes.h"
#include "extensions/common/extensions_client.h"

namespace extensions {

// static
FeatureProvider* FeatureProvider::GetByName(const std::string& name) {
  return ExtensionsClient::Get()->GetFeatureProviderByName(name);
}

// static
FeatureProvider* FeatureProvider::GetAPIFeatures() {
  return GetByName("api");
}

// static
FeatureProvider* FeatureProvider::GetManifestFeatures() {
  return GetByName("manifest");
}

// static
FeatureProvider* FeatureProvider::GetPermissionFeatures() {
  return GetByName("permission");
}

}  // namespace extensions

/* [<][>][^][v][top][bottom][index][help] */