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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 8391004: Add webstorePrivate API for installing bundles of extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 9202df448b194fbf565dc3bf18ab287573720cda..02daaba272bb57ff4d9e2afcd7842ec6690d7c82 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -7816,6 +7816,29 @@
{
"namespace":"webstorePrivate",
"nodoc": "true",
+ "types": [
+ {
+ "id": "BundleInstallDetails",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The id of the extension to be installed.",
+ "minLength": 32,
+ "maxLength": 32
+ },
+ "manifest": {
+ "type": "string",
+ "description": "A string with the contents of the extension's manifest.json file. During the install process, the browser will check that the downloaded extension's manifest matches what was passed in here.",
+ "minLength": 1
+ },
+ "localizedName": {
+ "type": "string",
+ "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
+ }
+ }
+ }
+ ],
"functions": [
{
"name": "install",
@@ -7835,6 +7858,31 @@
]
},
{
+ "name": "installBundle",
+ "description": "Initiates the install process for the given bundle of extensions.",
+ "parameters": [
+ {
+ "name": "details",
+ "description": "An array of extension details to be installed.",
+ "type": "array",
+ "items": { "$ref": "BundleInstallDetails" }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when the install process completes.",
+ "optional": "true",
+ "parameters": [
+ {
+ "name": "result",
+ "type": "string",
+ "description": "A string result code, which will be empty upon success. The possible values in the case of errors include 'unknown_error', 'user_cancelled' and 'permission_denied'."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "beginInstallWithManifest3",
"description": "Initiates the install process for the given extension.",
"parameters": [
@@ -7895,7 +7943,6 @@
]
}
]
-
},
{
"name": "completeInstall",

Powered by Google App Engine
This is Rietveld 408576698