OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file contains the specification of setup main functions. | 5 // This file contains the specification of setup main functions. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ |
8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ | 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ |
9 | 9 |
10 #include <vector> | |
11 | |
12 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
13 #include "base/version.h" | |
14 #include "chrome/installer/setup/installer_state.h" | |
15 #include "chrome/installer/util/installation_state.h" | |
16 #include "chrome/installer/util/master_preferences.h" | |
17 #include "chrome/installer/util/product.h" | |
18 #include "chrome/installer/util/util_constants.h" | 11 #include "chrome/installer/util/util_constants.h" |
19 | 12 |
20 namespace base { | 13 namespace base { |
21 class FilePath; | 14 class FilePath; |
22 class Version; | 15 class Version; |
23 } | 16 } |
24 | 17 |
25 namespace installer { | 18 namespace installer { |
26 | 19 |
27 class InstallationState; | 20 class InstallationState; |
28 class InstallerState; | 21 class InstallerState; |
29 class MasterPreferences; | 22 class MasterPreferences; |
| 23 class Product; |
30 | 24 |
31 enum InstallShortcutOperation { | 25 enum InstallShortcutOperation { |
32 // Create all shortcuts (potentially skipping those explicitly stated not to | 26 // Create all shortcuts (potentially skipping those explicitly stated not to |
33 // be installed in the InstallShortcutPreferences). | 27 // be installed in the InstallShortcutPreferences). |
34 INSTALL_SHORTCUT_CREATE_ALL, | 28 INSTALL_SHORTCUT_CREATE_ALL, |
35 // Create each per-user shortcut (potentially skipping those explicitly stated | 29 // Create each per-user shortcut (potentially skipping those explicitly stated |
36 // not to be installed in the InstallShortcutPreferences), but only if the | 30 // not to be installed in the InstallShortcutPreferences), but only if the |
37 // system-level equivalent of that shortcut is not present on the system. | 31 // system-level equivalent of that shortcut is not present on the system. |
38 INSTALL_SHORTCUT_CREATE_EACH_IF_NO_SYSTEM_LEVEL, | 32 INSTALL_SHORTCUT_CREATE_EACH_IF_NO_SYSTEM_LEVEL, |
39 // Replace all shortcuts that still exist with the most recent version of | 33 // Replace all shortcuts that still exist with the most recent version of |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Shortcut creation is skipped if the First Run beacon is present (unless | 130 // Shortcut creation is skipped if the First Run beacon is present (unless |
137 // |force| is set to true). | 131 // |force| is set to true). |
138 // |chrome| The installed product (must be a browser). | 132 // |chrome| The installed product (must be a browser). |
139 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, | 133 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, |
140 const Product& chrome, | 134 const Product& chrome, |
141 bool force); | 135 bool force); |
142 | 136 |
143 } // namespace installer | 137 } // namespace installer |
144 | 138 |
145 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 139 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
OLD | NEW |