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> | 10 #include <vector> |
11 | 11 |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/version.h" | 13 #include "base/version.h" |
14 #include "chrome/installer/util/installation_state.h" | 14 #include "chrome/installer/util/installation_state.h" |
15 #include "chrome/installer/util/installer_state.h" | 15 #include "chrome/installer/util/installer_state.h" |
16 #include "chrome/installer/util/master_preferences.h" | 16 #include "chrome/installer/util/master_preferences.h" |
17 #include "chrome/installer/util/product.h" | 17 #include "chrome/installer/util/product.h" |
18 #include "chrome/installer/util/util_constants.h" | 18 #include "chrome/installer/util/util_constants.h" |
19 | 19 |
20 class FilePath; | 20 class FilePath; |
21 class CommandLine; | |
grt (UTC plus 2)
2012/08/30 04:15:25
remove this
huangs
2012/08/30 17:13:07
Done.
| |
21 | 22 |
22 namespace installer { | 23 namespace installer { |
23 | 24 |
24 class InstallationState; | 25 class InstallationState; |
25 class InstallerState; | 26 class InstallerState; |
26 class MasterPreferences; | 27 class MasterPreferences; |
27 | 28 |
28 // Escape |att_value| as per the XML AttValue production | 29 // Escape |att_value| as per the XML AttValue production |
29 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in | 30 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in |
30 // single quotes. | 31 // single quotes. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 InstallStatus InstallOrUpdateProduct( | 96 InstallStatus InstallOrUpdateProduct( |
96 const InstallationState& original_state, | 97 const InstallationState& original_state, |
97 const InstallerState& installer_state, | 98 const InstallerState& installer_state, |
98 const FilePath& setup_path, | 99 const FilePath& setup_path, |
99 const FilePath& archive_path, | 100 const FilePath& archive_path, |
100 const FilePath& install_temp_path, | 101 const FilePath& install_temp_path, |
101 const FilePath& prefs_path, | 102 const FilePath& prefs_path, |
102 const installer::MasterPreferences& prefs, | 103 const installer::MasterPreferences& prefs, |
103 const Version& new_version); | 104 const Version& new_version); |
104 | 105 |
106 // Code that needs to executed right after OS upgrade. | |
grt (UTC plus 2)
2012/08/30 04:15:25
chromium style:
"Performs installation-related tas
huangs
2012/08/30 17:13:07
Done. Also removing unused "const InstallationSta
| |
107 // This is invoked by the --on-os-upgrade switch. | |
108 // Returns true if successful. | |
109 bool OnOsUpgrade(const InstallationState& original_state, | |
110 const InstallerState& installer_state, | |
111 const FilePath& setup_exe); | |
112 | |
105 } // namespace installer | 113 } // namespace installer |
106 | 114 |
107 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 115 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
OLD | NEW |