| Index: extensions/common/extensions_client.h
|
| diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
|
| index f0bdc8c4caee61bc4427d08086ae1cca38307b2e..9f4ebf92a9e847262c50d598a6d5f8396e111618 100644
|
| --- a/extensions/common/extensions_client.h
|
| +++ b/extensions/common/extensions_client.h
|
| @@ -18,6 +18,7 @@ namespace extensions {
|
|
|
| class APIPermissionSet;
|
| class Extension;
|
| +class ExtensionAPI;
|
| class FeatureProvider;
|
| class JSONFeatureProviderSource;
|
| class ManifestPermissionSet;
|
| @@ -82,9 +83,13 @@ class ExtensionsClient {
|
| // Returns true iff a schema named |name| is generated.
|
| virtual bool IsAPISchemaGenerated(const std::string& name) const = 0;
|
|
|
| - // Gets the API schema named |name|.
|
| + // Gets the generated API schema named |name|.
|
| virtual base::StringPiece GetAPISchema(const std::string& name) const = 0;
|
|
|
| + // Register non-generated API schema resources with the global ExtensionAPI.
|
| + // Called when the ExtensionAPI is lazily initialized.
|
| + virtual void RegisterAPISchemaResources(ExtensionAPI* api) const = 0;
|
| +
|
| // Determines if certain fatal extensions errors should be surpressed
|
| // (i.e., only logged) or allowed (i.e., logged before crashing).
|
| virtual bool ShouldSuppressFatalErrors() const = 0;
|
|
|