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 "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "chrome/installer/util/util_constants.h" | 11 #include "chrome/installer/util/util_constants.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
| 14 class CommandLine; |
14 class FilePath; | 15 class FilePath; |
15 class Version; | 16 class Version; |
16 } | 17 } |
17 | 18 |
18 namespace installer { | 19 namespace installer { |
19 | 20 |
20 class InstallationState; | 21 class InstallationState; |
21 class InstallerState; | 22 class InstallerState; |
22 class MasterPreferences; | 23 class MasterPreferences; |
23 class Product; | 24 class Product; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const InstallerState& installer_state); | 118 const InstallerState& installer_state); |
118 | 119 |
119 // Performs installation-related tasks following an OS upgrade. | 120 // Performs installation-related tasks following an OS upgrade. |
120 // |chrome| The installed product (must be a browser). | 121 // |chrome| The installed product (must be a browser). |
121 // |installed_version| the current version of this install. | 122 // |installed_version| the current version of this install. |
122 void HandleOsUpgradeForBrowser(const InstallerState& installer_state, | 123 void HandleOsUpgradeForBrowser(const InstallerState& installer_state, |
123 const Product& chrome, | 124 const Product& chrome, |
124 const base::Version& installed_version); | 125 const base::Version& installed_version); |
125 | 126 |
126 // Performs per-user installation-related tasks on Active Setup (ran on first | 127 // Performs per-user installation-related tasks on Active Setup (ran on first |
127 // login for each user post system-level Chrome install). | 128 // login for each user post system-level Chrome install). Shortcut creation is |
128 // |installation_root|: The root of this install (i.e. the directory in which | 129 // skipped if the First Run beacon is present (unless |force| is set to true). |
129 // chrome.exe is installed). | 130 void HandleActiveSetupForBrowser(bool force, |
130 // Shortcut creation is skipped if the First Run beacon is present (unless | 131 const base::CommandLine& command_line, |
131 // |force| is set to true). | 132 const MasterPreferences& master_preferences, |
132 // |chrome| The installed product (must be a browser). | 133 InstallationState* original_state, |
133 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, | 134 InstallerState* installer_state); |
134 const Product& chrome, | |
135 bool force); | |
136 | 135 |
137 } // namespace installer | 136 } // namespace installer |
138 | 137 |
139 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 138 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
OLD | NEW |