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

Side by Side Diff: chrome/common/extensions/features/simple_feature.h

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: optimize and "parent" property Created 7 years, 7 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 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_ 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const GURL& url, 80 const GURL& url,
81 Platform platform) const OVERRIDE; 81 Platform platform) const OVERRIDE;
82 82
83 virtual std::string GetAvailabilityMessage(AvailabilityResult result, 83 virtual std::string GetAvailabilityMessage(AvailabilityResult result,
84 Manifest::Type type, 84 Manifest::Type type,
85 const GURL& url) const OVERRIDE; 85 const GURL& url) const OVERRIDE;
86 86
87 virtual std::set<Context>* GetContexts() OVERRIDE; 87 virtual std::set<Context>* GetContexts() OVERRIDE;
88 88
89 virtual bool IsInternal() const OVERRIDE; 89 virtual bool IsInternal() const OVERRIDE;
90 virtual bool HasParent() const OVERRIDE;
90 91
91 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; 92 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE;
92 93
93 protected: 94 protected:
94 Availability CreateAvailability(AvailabilityResult result) const; 95 Availability CreateAvailability(AvailabilityResult result) const;
95 Availability CreateAvailability(AvailabilityResult result, 96 Availability CreateAvailability(AvailabilityResult result,
96 Manifest::Type type) const; 97 Manifest::Type type) const;
97 Availability CreateAvailability(AvailabilityResult result, 98 Availability CreateAvailability(AvailabilityResult result,
98 const GURL& url) const; 99 const GURL& url) const;
99 100
(...skipping 11 matching lines...) Expand all
111 int min_manifest_version_; 112 int min_manifest_version_;
112 int max_manifest_version_; 113 int max_manifest_version_;
113 chrome::VersionInfo::Channel channel_; 114 chrome::VersionInfo::Channel channel_;
114 115
115 FRIEND_TEST_ALL_PREFIXES(ExtensionSimpleFeatureTest, Context); 116 FRIEND_TEST_ALL_PREFIXES(ExtensionSimpleFeatureTest, Context);
116 }; 117 };
117 118
118 } // namespace extensions 119 } // namespace extensions
119 120
120 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_ 121 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698