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_BINARIES_INSTALLER_INTERNAL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_HOST_BINARIES_INSTALLER_INTERNAL_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 #include <oleauto.h> |
| 10 |
| 11 struct IApp; |
| 12 struct IAppBundle; |
| 13 struct IGoogleUpdate3; |
| 14 |
| 15 namespace app_host { |
| 16 namespace internal { |
| 17 |
| 18 // Returns true if the installation process is terminated, in which case *hr |
| 19 // will reveal the outcome. |
| 20 bool CheckIfDone(IAppBundle* app_bundle, IApp* app, HRESULT* hr); |
| 21 |
| 22 // Creates and initializes an IAppBundle using the provided IGoogleUpdate3 |
| 23 // instance. |
| 24 HRESULT CreateAppBundle(IGoogleUpdate3* update3, IAppBundle** app_bundle); |
| 25 |
| 26 // Retrieves the AP value of the Application Host, if installed. |
| 27 HRESULT GetAppHostApValue(IGoogleUpdate3* update3, BSTR* ap_value); |
| 28 |
| 29 // Adds the Chrome Binaries to the bundle for installation. |
| 30 HRESULT CreateBinariesIApp(IAppBundle* app_bundle, BSTR ap, IApp** app); |
| 31 |
| 32 // Create an instance of the IGoogleUpdate3 interface. |
| 33 HRESULT CreateGoogleUpdate3(IGoogleUpdate3** update3); |
| 34 |
| 35 // Attempts to use the AP value from the installed App Host, defaulting to Dev |
| 36 // channel otherwise. |
| 37 HRESULT SelectBinariesApValue(IGoogleUpdate3* update3, BSTR* ap_value); |
| 38 |
| 39 } // namespace internal |
| 40 } // namespace app_host |
| 41 |
| 42 #endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_BINARIES_INSTALLER_INTERNAL_H_ |
OLD | NEW |