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

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

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos tests Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "chrome/common/extensions/api/extension_api.h" 8 #include "chrome/common/extensions/api/extension_api.h"
9 9
10 #include "chrome/common/extensions/features/feature.h" 10 #include "chrome/common/extensions/features/feature.h"
(...skipping 17 matching lines...) Expand all
28 const GURL& url) { 28 const GURL& url) {
29 return Feature::CreateAvailability(Feature::NOT_PRESENT, ""); 29 return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
30 } 30 }
31 31
32 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name, 32 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name,
33 Feature::Context context, 33 Feature::Context context,
34 const GURL& url) { 34 const GURL& url) {
35 return false; 35 return false;
36 } 36 }
37 37
38 std::set<std::string> ExtensionAPI::GetAllAPINames() {
39 return std::set<std::string>();
40 }
41
42 bool ExtensionAPI::IsPrivileged(const std::string& full_name) { 38 bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
43 return false; 39 return false;
44 } 40 }
45 41
46 const base::DictionaryValue* ExtensionAPI::GetSchema( 42 const base::DictionaryValue* ExtensionAPI::GetSchema(
47 const std::string& full_name) { 43 const std::string& full_name) {
48 return NULL; 44 return NULL;
49 } 45 }
50 46
51 } // namespace extensions 47 } // 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