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 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // than |new_version| and not equal to |existing_version|. |existing_version| | 179 // than |new_version| and not equal to |existing_version|. |existing_version| |
180 // may be NULL. | 180 // may be NULL. |
181 void RemoveOldVersionDirectories(const base::Version& new_version, | 181 void RemoveOldVersionDirectories(const base::Version& new_version, |
182 base::Version* existing_version, | 182 base::Version* existing_version, |
183 const base::FilePath& temp_path) const; | 183 const base::FilePath& temp_path) const; |
184 | 184 |
185 // Adds to |com_dll_list| the list of COM DLLs that are to be registered | 185 // Adds to |com_dll_list| the list of COM DLLs that are to be registered |
186 // and/or unregistered. The list may be empty. | 186 // and/or unregistered. The list may be empty. |
187 void AddComDllList(std::vector<base::FilePath>* com_dll_list) const; | 187 void AddComDllList(std::vector<base::FilePath>* com_dll_list) const; |
188 | 188 |
189 bool SetChannelFlags(bool set, ChannelInfo* channel_info) const; | |
190 | |
191 // See InstallUtil::UpdateInstallerStage. | 189 // See InstallUtil::UpdateInstallerStage. |
192 void UpdateStage(installer::InstallerStage stage) const; | 190 void UpdateStage(installer::InstallerStage stage) const; |
193 | 191 |
194 // For a MULTI_INSTALL or MULTI_UPDATE operation, updates the Google Update | 192 // For a MULTI_INSTALL or MULTI_UPDATE operation, updates the Google Update |
195 // "ap" values for all products being operated on. | 193 // "ap" values for all products being operated on. |
196 void UpdateChannels() const; | 194 void UpdateChannels() const; |
197 | 195 |
198 // Sets installer result information in the registry for consumption by Google | 196 // Sets installer result information in the registry for consumption by Google |
199 // Update. The InstallerResult value is set to 0 (SUCCESS) or 1 | 197 // Update. The InstallerResult value is set to 0 (SUCCESS) or 1 |
200 // (FAILED_CUSTOM_ERROR) depending on whether |status| maps to success or not. | 198 // (FAILED_CUSTOM_ERROR) depending on whether |status| maps to success or not. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool msi_; | 267 bool msi_; |
270 bool verbose_logging_; | 268 bool verbose_logging_; |
271 | 269 |
272 private: | 270 private: |
273 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 271 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
274 }; // class InstallerState | 272 }; // class InstallerState |
275 | 273 |
276 } // namespace installer | 274 } // namespace installer |
277 | 275 |
278 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 276 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
OLD | NEW |