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

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

Issue 673663004: Android: Do not build any extensions code except for extensions_constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zoom_controller
Patch Set: fix merge conflict Created 6 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
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 // Stub methods to be used when extensions are disabled
6 // i.e. ENABLE_EXTENSIONS is not defined
7
8 #include "extensions/common/extension_api.h"
9
10 #include "extensions/common/features/feature.h"
11 #include "url/gurl.h"
12
13 namespace extensions {
14
15 // static
16 ExtensionAPI* ExtensionAPI::GetSharedInstance() {
17 return NULL;
18 }
19
20 // static
21 ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() {
22 return NULL;
23 }
24
25 Feature::Availability ExtensionAPI::IsAvailable(
26 const std::string& api_full_name,
27 const Extension* extension,
28 Feature::Context context,
29 const GURL& url) {
30 return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
31 }
32
33 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const Feature& api,
34 const Extension* extension,
35 Feature::Context context,
36 const GURL& url) {
37 return false;
38 }
39
40 bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string& full_name,
41 const Extension* extension) {
42 return false;
43 }
44
45 bool ExtensionAPI::IsAvailableToWebUI(const std::string& name,
46 const GURL& url) {
47 return false;
48 }
49
50 const base::DictionaryValue* ExtensionAPI::GetSchema(
51 const std::string& full_name) {
52 return NULL;
53 }
54
55 Feature* ExtensionAPI::GetFeatureDependency(const std::string& name) {
56 return NULL;
57 }
58
59 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698