| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // than |new_version| and not equal to |existing_version|. |existing_version| | 185 // than |new_version| and not equal to |existing_version|. |existing_version| |
| 186 // may be NULL. | 186 // may be NULL. |
| 187 void RemoveOldVersionDirectories(const base::Version& new_version, | 187 void RemoveOldVersionDirectories(const base::Version& new_version, |
| 188 base::Version* existing_version, | 188 base::Version* existing_version, |
| 189 const base::FilePath& temp_path) const; | 189 const base::FilePath& temp_path) const; |
| 190 | 190 |
| 191 // Adds to |com_dll_list| the list of COM DLLs that are to be registered | 191 // Adds to |com_dll_list| the list of COM DLLs that are to be registered |
| 192 // and/or unregistered. The list may be empty. | 192 // and/or unregistered. The list may be empty. |
| 193 void AddComDllList(std::vector<base::FilePath>* com_dll_list) const; | 193 void AddComDllList(std::vector<base::FilePath>* com_dll_list) const; |
| 194 | 194 |
| 195 bool SetChannelFlags(bool set, ChannelInfo* channel_info) const; | |
| 196 | |
| 197 // See InstallUtil::UpdateInstallerStage. | 195 // See InstallUtil::UpdateInstallerStage. |
| 198 void UpdateStage(installer::InstallerStage stage) const; | 196 void UpdateStage(installer::InstallerStage stage) const; |
| 199 | 197 |
| 200 // For a MULTI_INSTALL or MULTI_UPDATE operation, updates the Google Update | 198 // For a MULTI_INSTALL or MULTI_UPDATE operation, updates the Google Update |
| 201 // "ap" values for all products being operated on. | 199 // "ap" values for all products being operated on. |
| 202 void UpdateChannels() const; | 200 void UpdateChannels() const; |
| 203 | 201 |
| 204 // Sets installer result information in the registry for consumption by Google | 202 // Sets installer result information in the registry for consumption by Google |
| 205 // Update. The InstallerResult value is set to 0 (SUCCESS) or 1 | 203 // Update. The InstallerResult value is set to 0 (SUCCESS) or 1 |
| 206 // (FAILED_CUSTOM_ERROR) depending on whether |status| maps to success or not. | 204 // (FAILED_CUSTOM_ERROR) depending on whether |status| maps to success or not. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 bool verbose_logging_; | 274 bool verbose_logging_; |
| 277 bool ensure_google_update_present_; | 275 bool ensure_google_update_present_; |
| 278 | 276 |
| 279 private: | 277 private: |
| 280 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 278 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
| 281 }; // class InstallerState | 279 }; // class InstallerState |
| 282 | 280 |
| 283 } // namespace installer | 281 } // namespace installer |
| 284 | 282 |
| 285 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 283 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
| OLD | NEW |