| Index: chrome/browser/extensions/app_host_installer.h
|
| diff --git a/chrome/browser/extensions/app_host_installer.h b/chrome/browser/extensions/app_host_installer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3548052ca1e66e64d4a281eec270790a1deda22f
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/app_host_installer.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_
|
| +
|
| +#include "base/callback_forward.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +class Extension;
|
| +
|
| +namespace app_host_installer {
|
| +
|
| +// Called on the original calling thread after InstallAppHostIfNecessary()
|
| +// is complete. A boolean flag is passed, which is false iff the installation
|
| +// was required but failed.
|
| +typedef base::Callback<void(bool)> OnAppHostInstallationCompleteCallback;
|
| +
|
| +// Installs the App Host if it is absent, but is required for the given
|
| +// extension on the current platform.
|
| +// Calls |completion_callback| on the original calling thread after.
|
| +void InstallAppHostIfNecessary(
|
| + const Extension& extension,
|
| + const OnAppHostInstallationCompleteCallback& completion_callback);
|
| +
|
| +} // namespace app_host_installer
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_
|
|
|