Chromium Code Reviews| Index: extensions/common/extension_api.h |
| diff --git a/extensions/common/extension_api.h b/extensions/common/extension_api.h |
| index e876079b37858897adf6611bcfe679e5744fed8a..0d08dd1588a9561f50a3f7438b0df22b2662db8f 100644 |
| --- a/extensions/common/extension_api.h |
| +++ b/extensions/common/extension_api.h |
| @@ -106,10 +106,17 @@ class ExtensionAPI { |
| // Returns true if |name| is available to WebUI contexts on |url|. |
| bool IsAvailableToWebUI(const std::string& name, const GURL& url); |
| - // Gets the schema for the extension API with namespace |full_name|. |
| + // Gets the schema for the extension API with namespace |full_name|, or |
| + // nullptr if the schema could not be loaded. |
| // Ownership remains with this object. |
| const base::DictionaryValue* GetSchema(const std::string& full_name); |
| + // Attempts to load the schema for |api|. Called by the browser process when |
|
Devlin
2016/08/19 15:02:32
nit: omit "called by the browser process...". Tha
Wez
2016/08/19 18:22:15
Done.
|
| + // it is notified that the schema may be corrupted. If the schema cannot be |
| + // loaded then the calling process will be killed. If the |api| is not |
| + // recognized then the call has no effect. |
| + void LoadSchemaListOrDie(const std::string& api); |
| + |
| // Splits a full name from the extension API into its API and child name |
| // parts. Some examples: |
| // |