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

Unified Diff: chrome/browser/extensions/app_host_installer_win.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: 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_win.h
diff --git a/chrome/browser/extensions/app_host_installer_win.h b/chrome/browser/extensions/app_host_installer_win.h
new file mode 100755
index 0000000000000000000000000000000000000000..36ef1dadd9c5b0583a4a7932408ee7ce0654417c
--- /dev/null
+++ b/chrome/browser/extensions/app_host_installer_win.h
@@ -0,0 +1,33 @@
+// 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_WIN_H_
+#define CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_WIN_H_
+
+#include <windows.h>
+#include "base/bind.h"
+#include "base/win/object_watcher.h"
+#include "base/win/scoped_handle.h"
+
+namespace extensions {
+
+class AppHostInstaller {
+ public:
+ AppHostInstaller();
+ void EnsureAppHostPresentAndCall(const base::Closure& on_success,
benwells 2012/10/03 05:08:43 Please add a comment explaining that this can only
erikwright (departed) 2012/10/03 15:58:35 Sure, a static IsAppHostRequired(Extension*) seems
huangs 2012/10/03 20:09:47 Done, but added another function OnAppHostInstalla
huangs 2012/10/03 20:09:47 Done (Made static).
+ const base::Closure& on_failure);
+
+ private:
+ bool running_;
+ base::win::ScopedHandle process_;
+ base::win::ObjectWatcher watcher_;
+ scoped_ptr<base::win::ObjectWatcher::Delegate> delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppHostInstaller);
+};
+
+} // namespace extensions
+
+
+#endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698