Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / api / inline_install_private.idl
blob70af8c0947f85ab75832baeb741f803a588a2d53
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Private API to initiate inline install flow of other apps.
6 namespace inlineInstallPrivate {
8 // This returns a developer-readable error message in error and
9 // a string error code in errorCode (see $ref:webstore.ErrorCode)
10 callback ResultCallback = void (DOMString error,
11 DOMString errorCode);
13 interface Functions {
14 // This can currently only be used to install apps, but not extensions.
15 static void install(DOMString id,
16 optional ResultCallback callback);