OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_ | |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_ | |
7 | |
8 #include "chrome/browser/shell_integration.h" | |
jackhou1
2014/04/29 08:50:18
You probably need to sync. It's web_app::ShortcutI
calamity
2014/05/19 06:11:54
Done.
| |
9 #include "chrome/browser/web_applications/web_app.h" | |
10 | |
11 namespace extensions { | |
12 class Extension; | |
13 } | |
14 | |
15 namespace web_app { | |
16 | |
17 // UpdateRelaunchDetailsWorker holds all context data needed for updating the | |
18 // relaunch details of an app. | |
19 class UpdateRelaunchDetailsWorker { | |
20 public: | |
21 UpdateRelaunchDetailsWorker(Profile* profile, | |
22 const extensions::Extension* extension, | |
23 HWND hwnd); | |
24 | |
25 void Run(); | |
26 | |
27 private: | |
28 ~UpdateRelaunchDetailsWorker(); | |
29 | |
30 void OnShortcutInfoLoaded( | |
31 const ShellIntegration::ShortcutInfo& shortcut_info); | |
32 | |
33 // Sets the relaunch data so "Pin this program to taskbar" has the app's | |
34 // information. | |
35 void CreateIconAndSetRelaunchDetails( | |
36 const base::FilePath& web_app_path, | |
37 const base::FilePath& icon_file, | |
38 const ShellIntegration::ShortcutInfo& shortcut_info); | |
39 | |
40 void DeleteMeOnUIThread(); | |
41 | |
42 Profile* profile_; | |
43 | |
44 const extensions::Extension* extension_; | |
45 | |
46 HWND hwnd_; | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(UpdateRelaunchDetailsWorker); | |
49 }; | |
50 | |
51 } // namespace web_app | |
52 | |
53 #endif // CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_ | |
OLD | NEW |