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

Unified Diff: chrome/browser/extensions/app_host_installer.h

Issue 11054006: Make application shortcuts point to app_host.exe, install App Host during app installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Refactoring AppHostInstallerImpl: checking for is_platform_app() before flow; entry now done by sta… Created 8 years, 2 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_installer.h
diff --git a/chrome/browser/extensions/app_host_installer.h b/chrome/browser/extensions/app_host_installer.h
new file mode 100644
index 0000000000000000000000000000000000000000..a2439f108159ce0b95064a48cb35567da28e2f80
--- /dev/null
+++ b/chrome/browser/extensions/app_host_installer.h
@@ -0,0 +1,28 @@
+// 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_INSTALLER_H_
+#define CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_
+
+#include "base/callback_forward.h"
+
+namespace extensions {
+
+class Extension;
+
+namespace app_host_installer {
+
+// Installs the App Host if it is required and not present for the given
+// extension on the current platform.
+// Calls |completion_callback| after checks and installation (if necessary)
erikwright (departed) 2012/10/09 21:51:52 ... on the original calling thread after checks ..
huangs 2012/10/09 22:44:26 Done.
+// are complete, with a boolean which will be false iff the installation was
+// required but failed.
+void InstallAppHostIfNecessary(const Extension& extension,
+ const base::Callback<void(bool)>& completion_callback);
+
+} // namespace app_host_installer
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_H_

Powered by Google App Engine
This is Rietveld 408576698