summaryrefslogtreecommitdiffstats
path: root/extensions/common/extensions_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/extensions_client.h')
-rw-r--r--extensions/common/extensions_client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index b3e9892..f0bdc8c 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -19,6 +19,7 @@ namespace extensions {
class APIPermissionSet;
class Extension;
class FeatureProvider;
+class JSONFeatureProviderSource;
class ManifestPermissionSet;
class PermissionMessage;
class PermissionMessageProvider;
@@ -47,6 +48,13 @@ class ExtensionsClient {
virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
const std::string& name) const = 0;
+ // Create a JSONFeatureProviderSource for a specific feature type,
+ // e.g. "permission". Currently, all features are loaded from
+ // JSONFeatureProviderSources.
+ // This is used primarily in CreateFeatureProvider, above.
+ virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
+ const std::string& name) const = 0;
+
// Takes the list of all hosts and filters out those with special
// permission strings. Adds the regular hosts to |new_hosts|,
// and adds the special permission messages to |messages|.