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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_INSTALLER_WIN_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_WIN_H_
7
8 #include <windows.h>
9 #include "base/bind.h"
10 #include "base/win/object_watcher.h"
11 #include "base/win/scoped_handle.h"
12
13 namespace extensions {
14
15 class AppHostInstaller {
16 public:
17 AppHostInstaller();
18 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).
19 const base::Closure& on_failure);
20
21 private:
22 bool running_;
23 base::win::ScopedHandle process_;
24 base::win::ObjectWatcher watcher_;
25 scoped_ptr<base::win::ObjectWatcher::Delegate> delegate_;
26
27 DISALLOW_COPY_AND_ASSIGN(AppHostInstaller);
28 };
29
30 } // namespace extensions
31
32
33 #endif // CHROME_BROWSER_EXTENSIONS_APP_HOST_INSTALLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698