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 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.
| |
22 // to proceed with installation, on the caller thread. | |
23 // |next_step| takes a bool parameter to be notified of whether or not | |
24 // App Host installation was successful. | |
25 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.
| |
26 const Extension& extension, | |
27 const base::Callback<void(bool)>& final_step); | |
28 | |
29 private: | |
30 // The implementation. | |
31 AppHostInstallerImpl* impl_; | |
huangs
2012/10/04 22:56:42
Not using scoped_ptr for this, since AppHostInstal
| |
32 DISALLOW_COPY_AND_ASSIGN(AppHostInstaller); | |
33 }; | |
34 | |
35 } // namespace extensions | |
36 | |
37 #endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ | |
OLD | NEW |