Performance histograms for extension content verification
[chromium-blink-merge.git] / extensions / common / extension_api_stub.cc
blob0a2468ae7872262d5621383c9988d20802593dc1
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"
12 namespace extensions {
14 // static
15 ExtensionAPI* ExtensionAPI::GetSharedInstance() {
16 return NULL;
19 // static
20 ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() {
21 return NULL;
24 Feature::Availability ExtensionAPI::IsAvailable(
25 const std::string& api_full_name,
26 const Extension* extension,
27 Feature::Context context,
28 const GURL& url) {
29 return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
32 Feature::Availability ExtensionAPI::IsAvailable(
33 const Feature& api,
34 const Extension* extension,
35 Feature::Context context,
36 const GURL& url) {
37 return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
40 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const Feature& api,
41 const Extension* extension,
42 Feature::Context context,
43 const GURL& url) {
44 return false;
47 bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
48 return false;
51 const base::DictionaryValue* ExtensionAPI::GetSchema(
52 const std::string& full_name) {
53 return NULL;
56 } // namespace extensions