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 #include "chrome/browser/extensions/app_host_installer.h" | |
6 | |
7 #include "base/bind.h" | |
erikwright (departed)
2012/10/05 21:18:23
not required.
huangs
2012/10/07 01:42:25
Done.
| |
8 #include "base/callback.h" | |
9 #include "base/compiler_specific.h" | |
erikwright (departed)
2012/10/05 21:18:23
not required
huangs
2012/10/07 01:42:25
Done.
| |
10 #include "chrome/common/extensions/extension.h" | |
erikwright (departed)
2012/10/05 21:18:23
not required
huangs
2012/10/07 01:42:25
Done (forward declared).
| |
11 | |
12 #if defined(OS_WIN) | |
13 #include "chrome/browser/extensions/app_host_installer_impl_win.h" | |
14 #endif | |
15 | |
16 namespace extensions { | |
17 | |
18 AppHostInstaller::AppHostInstaller() | |
19 : | |
20 #if defined(OS_WIN) | |
21 impl_(new AppHostInstallerImpl()) {} | |
22 #else | |
23 impl_(0) {} | |
24 #endif | |
25 | |
26 AppHostInstaller::~AppHostInstaller() { | |
27 if (impl_) | |
28 delete impl_; | |
29 } | |
30 | |
31 void AppHostInstaller::InstallAppHostIfNecessary( | |
32 const Extension& extension, | |
33 const base::Callback<void(bool)>& completion_callback) { | |
34 #if defined(OS_WIN) | |
35 impl_->InstallAppHostIfNecessary(extension, completion_callback); | |
36 #else | |
37 completion_callback.Run(true); | |
38 #endif | |
39 } | |
40 | |
41 } // namespace extensions | |
OLD | NEW |