-class WebstorePrivateInstallBundleFunction
- : public ChromeAsyncExtensionFunction,
- public extensions::BundleInstaller::Delegate {
- public:
- DECLARE_EXTENSION_FUNCTION("webstorePrivate.installBundle",
- WEBSTOREPRIVATE_INSTALLBUNDLE)
-
- WebstorePrivateInstallBundleFunction();
-
- // BundleInstaller::Delegate:
- virtual void OnBundleInstallApproved() OVERRIDE;
- virtual void OnBundleInstallCanceled(bool user_initiated) OVERRIDE;
- virtual void OnBundleInstallCompleted() OVERRIDE;
-
- protected:
- virtual ~WebstorePrivateInstallBundleFunction();
-
- // ExtensionFunction:
- virtual bool RunAsync() OVERRIDE;
-
- // Reads the extension |details| into |items|.
- bool ReadBundleInfo(
- const api::webstore_private::InstallBundle::Params& details,
- extensions::BundleInstaller::ItemList* items);
-
- private:
- scoped_refptr<extensions::BundleInstaller> bundle_;
-};
-