summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 22:59:30 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 22:59:30 +0000
commitb1f04cca79abf21ec97b227caf95eff9871a044a (patch)
treee591cb932baa005e04a1ce31a72efe9a9350be03 /chrome/common
parent9246de382277a2700c0d1e9f1305591c31a316d0 (diff)
downloadchromium_src-b1f04cca79abf21ec97b227caf95eff9871a044a.zip
chromium_src-b1f04cca79abf21ec97b227caf95eff9871a044a.tar.gz
chromium_src-b1f04cca79abf21ec97b227caf95eff9871a044a.tar.bz2
Split the private webstore install API into two parts.
The first part, beginInstall, must be called during a user gesture. The second part should supply a matching id and actually starts the download and install process. BUG=61954 TEST=Requires webstore server side changes before it can be fully tested. For now, you can test that visiting the webstore and running something like the following command in the javascript console generates an error: chrome.webstorePrivate.beginInstall("mihcahmgecmbnbcchbopgniflfhgnkff") Review URL: http://codereview.chromium.org/4727001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/api/extension_api.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 45d9409..a5ef58f 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -4239,6 +4239,40 @@
]
},
{
+ "name": "beginInstall",
+ "description": "Initiates the install process for the given extension id",
+ "parameters": [
+ {
+ "name": "expected_id",
+ "type": "string",
+ "description": "The id of the extension to be installled. Must be called during a user gesture."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "true",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "completeInstall",
+ "description": "",
+ "parameters": [
+ {
+ "name": "expected_id",
+ "type": "string",
+ "description": "The id of the extension to be installled. This should match a previous call to beginInstall."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "true",
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "getBrowserLogin",
"description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
"parameters": [