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

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

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 months 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
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/common/features/feature.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Stub methods to be used when extensions are disabled 5 // Stub methods to be used when extensions are disabled
6 // i.e. ENABLE_EXTENSIONS is not defined 6 // i.e. ENABLE_EXTENSIONS is not defined
7 7
8 #include "extensions/common/extension_api.h" 8 #include "extensions/common/extension_api.h"
9 9
10 #include "extensions/common/features/feature.h" 10 #include "extensions/common/features/feature.h"
(...skipping 23 matching lines...) Expand all
34 Feature::Context context, 34 Feature::Context context,
35 const GURL& url) { 35 const GURL& url) {
36 return false; 36 return false;
37 } 37 }
38 38
39 bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string& full_name, 39 bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string& full_name,
40 const Extension* extension) { 40 const Extension* extension) {
41 return false; 41 return false;
42 } 42 }
43 43
44 bool ExtensionAPI::IsAvailableToWebUI(const std::string& name) {
45 return false;
46 }
47
44 const base::DictionaryValue* ExtensionAPI::GetSchema( 48 const base::DictionaryValue* ExtensionAPI::GetSchema(
45 const std::string& full_name) { 49 const std::string& full_name) {
46 return NULL; 50 return NULL;
47 } 51 }
48 52
49 Feature* ExtensionAPI::GetFeatureDependency(const std::string& name) { 53 Feature* ExtensionAPI::GetFeatureDependency(const std::string& name) {
50 return NULL; 54 return NULL;
51 } 55 }
52 56
53 } // namespace extensions 57 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/common/features/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698