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 | |
15 class AppHostInstaller { | |
16 public: | |
17 AppHostInstaller(); | |
18 | |
19 // Installs the App Host if it is required and not present for the given | |
20 // extension on the current platform. | |
21 // Calls |completion_callback| after checks and installation (if necessary) | |
22 // are complete, with a boolean which will be false iff the installation was | |
23 // required but failed. | |
24 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.
| |
25 const Extension& extension, | |
26 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
| |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(AppHostInstaller); | |
30 }; | |
31 | |
32 } // namespace extensions | |
33 | |
34 #endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_ | |
OLD | NEW |