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..e434a388f5aa298cc09b2f729dc7c4d4e73d91b8 |
--- /dev/null |
+++ b/chrome/browser/extensions/app_host_installer.h |
@@ -0,0 +1,34 @@ |
+// 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/basictypes.h" |
+#include "base/callback_forward.h" |
+ |
+namespace extensions { |
+ |
+class Extension; |
+ |
+class AppHostInstaller { |
+ public: |
+ AppHostInstaller(); |
+ |
+ // Installs the App Host if it is required and not present for the given |
+ // extension on the current platform. |
+ // Calls |completion_callback| after checks and installation (if necessary) |
+ // are complete, with a boolean which will be false iff the installation was |
+ // required but failed. |
+ void AppHostInstaller::InstallAppHostIfNecessary( |
benwells
2012/10/08 06:14:33
Can this just be a static function in a namespace?
huangs
2012/10/09 18:25:37
Done.
|
+ const Extension& extension, |
+ const base::Callback<void(bool)>& completion_callback); |
benwells
2012/10/08 06:14:33
I know I suggested adding the extension here, but
erikwright (departed)
2012/10/09 15:54:53
We can push the is_platform_app() check to call si
huangs
2012/10/09 18:25:37
Deferring. Once we have a decision, will move the
benwells
2012/10/10 03:22:04
My main concerns are
(1) keeping all this code out
|
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AppHostInstaller); |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ |