Chromium Code Reviews| Index: chrome/common/extensions/mojo/inline_install.mojom |
| diff --git a/chrome/common/extensions/mojo/inline_install.mojom b/chrome/common/extensions/mojo/inline_install.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..683f15a9906fb6b2697a33ce4550f4d11e8d4757 |
| --- /dev/null |
| +++ b/chrome/common/extensions/mojo/inline_install.mojom |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module extensions.mojom; |
| + |
| +[Native] |
| +enum WebstoreInstallResult; |
| + |
| +[Native] |
| +enum WebstoreInstallStage; |
| + |
| +interface InlineInstallProgressListener { |
| + // Notifies the renderer when install stage updates were requested for an |
| + // inline install. |
| + InlineInstallStageChanged(WebstoreInstallStage stage); |
| + |
| + // Notifies the renderer when download progress updates were requested for an |
| + // inline install. |
| + InlineInstallDownloadProgress(int32 percent_downloaded); |
| +}; |
| + |
| +interface InlineInstall { |
|
Devlin
2017/04/28 18:33:02
nit: maybe InlineInstaller? WDYT? (It seems weir
catmullings
2017/05/02 19:02:15
Done.
|
| + // Sent by the renderer to implement chrome.webstore.install() and notifies |
| + // the renderer once the installation is complete. |
| + DoInlineInstall(int32 install_id, string webstore_item_id, |
|
Devlin
2017/04/28 18:33:02
nit: all parameters should have the same indentati
catmullings
2017/05/02 19:02:15
Done.
|
| + int32 listeners_mask, |
| + InlineInstallProgressListener install_progress_listener) => |
| + (int32 install_id, bool success, string error, |
| + WebstoreInstallResult result); |
|
catmullings
2017/05/02 19:02:15
Documentation:
We removed the callback response on
|
| +}; |
| + |
| + |