Index: chrome/common/extensions/api/webstore.json |
diff --git a/chrome/common/extensions/api/webstore.json b/chrome/common/extensions/api/webstore.json |
index 38d6de3867c759d05a45a0b995e281dc5e979ce9..4a35b86c27898a9526b87ed6b7de8a49ac2d77d7 100644 |
--- a/chrome/common/extensions/api/webstore.json |
+++ b/chrome/common/extensions/api/webstore.json |
@@ -12,6 +12,84 @@ |
"type": "string", |
"enum": ["installing", "downloading"], |
"description": "Enum used to indicate the stage of the installation process. 'downloading' indicates that the necessary files are being downloaded, and 'installing' indicates that the files are downloaded and are being actively installed." |
+ }, |
+ { |
+ "id": "ErrorCode", |
+ "type": "string", |
+ "description": "Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.", |
+ "enum": [ |
+ // Keep this list of enums in sync with |
+ // chrome/common/extensions/webstore_install_result.h and |
+ // chrome/common/extensions/api/webstore/webstore_api_constants.cc! |
+ { |
+ "description": "An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.", |
+ "name": "otherError" |
+ }, |
+ { |
+ "description": "The operation was aborted as the requestor is no longer alive.", |
+ "name": "aborted" |
+ }, |
+ { |
+ "description": "An installation of the same extension is in progress.", |
+ "name": "installInProgress" |
+ }, |
+ { |
+ "description": "The installation is not permitted.", |
+ "name": "notPermitted" |
+ }, |
+ { |
+ "description": "Invalid Chrome Web Store item ID.", |
+ "name": "invalidId" |
+ }, |
+ { |
+ "description": "Failed to retrieve extension metadata from the Web Store.", |
+ "name": "webstoreRequestError" |
+ }, |
+ { |
+ "description": "The extension metadata retrieved from the Web Store was invalid.", |
+ "name": "invalidWebstoreResponse" |
+ }, |
+ { |
+ "description": "An error occurred while parsing the extension manifest retrieved from the Web Store.", |
+ "name": "invalidManifest" |
+ }, |
+ { |
+ "description": "Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.", |
+ "name": "iconError" |
+ }, |
+ { |
+ "description": "The user canceled the operation.", |
+ "name": "userCanceled" |
+ }, |
+ { |
+ "description": "The extension is blacklisted.", |
+ "name": "blacklisted" |
+ }, |
+ { |
+ "description": "Unsatisfied dependencies, such as shared modules.", |
+ "name": "missingDependencies" |
+ }, |
+ { |
+ "description": "Unsatisfied requirements, such as webgl.", |
+ "name": "requirementViolations" |
+ }, |
+ { |
+ "description": "The extension is blocked by management policies.", |
+ "name": "blockedByPolicy" |
+ }, |
+ { |
+ "description": "The launch feature is not available.", |
+ "name": "launchFeatureDisabled" |
tmdiep
2014/07/25 00:45:04
I saw this patch while merging.
These error codes
|
+ }, |
+ { |
+ "description": "The launch feature is not supported for the extension type.", |
+ "name": "launchUnsupportedExtensionType" |
+ }, |
+ { |
+ "description": "A launch of the same extension is in progress.", |
+ "name": " launchInProgress" |
+ } |
+ ] |
} |
], // types |
"events": [ |
@@ -67,6 +145,12 @@ |
"name": "error", |
"type": "string", |
"description": "The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back." |
+ }, |
+ { |
+ "name": "errorCode", |
+ "$ref": "ErrorCode", |
+ "optional": "true", |
+ "description": "The error code from the stable set of possible errors." |
} |
], |
"description": "This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site." |