OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 class Extension; |
| 14 class AppHostInstallerImpl; |
| 15 |
| 16 class AppHostInstaller { |
| 17 public: |
| 18 AppHostInstaller(); |
| 19 ~AppHostInstaller(); |
| 20 |
| 21 // Installs the App Host if it is required and not present for the given |
| 22 // extension on the current platform. |
| 23 // Calls |completion_callback| after checks and installation (if necessary) |
| 24 // are complete, with a boolean which will be false iff the installation was |
| 25 // required but failed. |
| 26 void AppHostInstaller::InstallAppHostIfNecessary( |
| 27 const Extension& extension, |
| 28 const base::Callback<void(bool)>& completion_callback); |
| 29 |
| 30 private: |
| 31 // The implementation. |
| 32 AppHostInstallerImpl* impl_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(AppHostInstaller); |
| 35 }; |
| 36 |
| 37 } // namespace extensions |
| 38 |
| 39 #endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ |
OLD | NEW |