1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Stub methods to be used when extensions are disabled
6 // i.e. ENABLE_EXTENSIONS is not defined
8 #include "chrome/common/extensions/api/extension_api.h"
10 #include "extensions/common/features/feature.h"
12 namespace extensions {
15 ExtensionAPI* ExtensionAPI::GetSharedInstance() {
20 ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() {
24 Feature::Availability ExtensionAPI::IsAvailable(
25 const std::string& api_full_name,
26 const Extension* extension,
27 Feature::Context context,
29 return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
32 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name,
33 const Extension* extension,
34 Feature::Context context,
39 bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
43 const base::DictionaryValue* ExtensionAPI::GetSchema(
44 const std::string& full_name) {
48 } // namespace extensions