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..8cd6e2647994f25f9095ccc518bc5fea732aecbc |
--- /dev/null |
+++ b/chrome/browser/extensions/app_host_installer.h |
@@ -0,0 +1,37 @@ |
+// 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 AppHostInstallerImpl; |
+ |
+class AppHostInstaller { |
+ public: |
+ AppHostInstaller(); |
+ ~AppHostInstaller(); |
+ |
+ // Installs App Host, then calls (directly or via post) |next_step| |
erikwright (departed)
2012/10/05 02:21:56
Installs the App Host if it is required and not pr
huangs
2012/10/05 19:46:08
Done.
|
+ // to proceed with installation, on the caller thread. |
+ // |next_step| takes a bool parameter to be notified of whether or not |
+ // App Host installation was successful. |
+ void AppHostInstaller::InstallAppHostIfNecessaryThenCall( |
erikwright (departed)
2012/10/05 02:21:56
Remove the "ThenCall".
The presence of a callback
huangs
2012/10/05 19:46:08
Done.
|
+ const Extension& extension, |
+ const base::Callback<void(bool)>& final_step); |
+ |
+ private: |
+ // The implementation. |
+ AppHostInstallerImpl* impl_; |
huangs
2012/10/04 22:56:42
Not using scoped_ptr for this, since AppHostInstal
|
+ DISALLOW_COPY_AND_ASSIGN(AppHostInstaller); |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ |