Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: chrome/common/extensions/api/extension_api_stub.cc

Issue 50743005: Moved extension_api to src/extensions/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 // Stub methods to be used when extensions are disabled
6 // i.e. ENABLE_EXTENSIONS is not defined
7
8 #include "chrome/common/extensions/api/extension_api.h"
9
10 #include "extensions/common/features/feature.h"
11
12 namespace extensions {
13
14 // static
15 ExtensionAPI* ExtensionAPI::GetSharedInstance() {
16 return NULL;
17 }
18
19 // static
20 ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() {
21 return NULL;
22 }
23
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, "");
30 }
31
32 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name,
33 const Extension* extension,
34 Feature::Context context,
35 const GURL& url) {
36 return false;
37 }
38
39 bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
40 return false;
41 }
42
43 const base::DictionaryValue* ExtensionAPI::GetSchema(
44 const std::string& full_name) {
45 return NULL;
46 }
47
48 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/api/extension_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698