Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2278)

Unified Diff: chrome/browser/extensions/app_host/binaries_installer_internal.h

Issue 10825364: Upon execution of the App Host, ask Omaha to install the Chrome Binaries if they are not present on… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More wood behind fewer return statements. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/app_host/binaries_installer_internal.h
diff --git a/chrome/browser/extensions/app_host/binaries_installer_internal.h b/chrome/browser/extensions/app_host/binaries_installer_internal.h
new file mode 100644
index 0000000000000000000000000000000000000000..00b321aa59ace6d663a77318209116e41ff2e1be
--- /dev/null
+++ b/chrome/browser/extensions/app_host/binaries_installer_internal.h
@@ -0,0 +1,41 @@
+// 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_BINARIES_INSTALLER_INTERNAL_H_
+#define CHROME_BROWSER_EXTENSIONS_APP_HOST_BINARIES_INSTALLER_INTERNAL_H_
+
+#include <windows.h>
+
+struct IApp;
+struct IAppBundle;
+struct IGoogleUpdate3;
+
+namespace app_host {
+namespace internal {
+
+// Returns true if the installation process is terminated, in which case *hr
+// will reveal the outcome.
+bool CheckIfDone(IAppBundle* app_bundle, IApp* app, HRESULT* hr);
+
+// Creates and initializes an IAppBundle using the provided IGoogleUpdate3
+// instance.
+HRESULT CreateAppBundle(IGoogleUpdate3* update3, IAppBundle** app_bundle);
+
+// Retrieves the AP value of the Application Host, if installed.
+HRESULT GetAppHostAPValue(IGoogleUpdate3* update3, BSTR* ap_value);
miket_OOO 2012/08/23 23:51:01 Be consistent in capitalization of AP in this file
erikwright (departed) 2012/08/31 21:04:48 Done.
+
+// Adds the Chrome Binaries to the bundle for installation.
+HRESULT CreateBinariesIApp(IAppBundle* app_bundle, BSTR ap, IApp** app);
+
+// Create an instance of the IGoogleUpdate3 interface.
+HRESULT CreateGoogleUpdate3(IGoogleUpdate3** update3);
+
+// Attempts to use the AP value from the installed App Host, defaulting to Dev
+// channel otherwise.
+HRESULT SelectBinariesApValue(IGoogleUpdate3* update3, BSTR* ap_value);
+
+} // namespace internal
+} // namespace app_host
+
+#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_BINARIES_INSTALLER_INTERNAL_H_

Powered by Google App Engine
This is Rietveld 408576698