1 // Copyright 2013 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 "extensions/common/extension_api.h"
10 #include "extensions/common/features/feature.h"
13 namespace extensions
{
16 ExtensionAPI
* ExtensionAPI::GetSharedInstance() {
21 ExtensionAPI
* ExtensionAPI::CreateWithDefaultConfiguration() {
25 Feature::Availability
ExtensionAPI::IsAvailable(
26 const std::string
& api_full_name
,
27 const Extension
* extension
,
28 Feature::Context context
,
30 return Feature::CreateAvailability(Feature::NOT_PRESENT
, "");
33 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const Feature
& api
,
34 const Extension
* extension
,
35 Feature::Context context
,
40 bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string
& full_name
,
41 const Extension
* extension
) {
45 bool ExtensionAPI::IsAvailableToWebUI(const std::string
& name
,
50 const base::DictionaryValue
* ExtensionAPI::GetSchema(
51 const std::string
& full_name
) {
55 Feature
* ExtensionAPI::GetFeatureDependency(const std::string
& name
) {
59 } // namespace extensions