| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/version.h" | 14 #include "base/version.h" |
| 15 #include "chrome/installer/util/product.h" | 15 #include "chrome/installer/util/product.h" |
| 16 #include "chrome/installer/util/master_preferences.h" | |
| 17 #include "chrome/installer/util/util_constants.h" | 16 #include "chrome/installer/util/util_constants.h" |
| 18 | 17 |
| 19 class DictionaryValue; | 18 class DictionaryValue; |
| 20 class FilePath; | 19 class FilePath; |
| 21 class WorkItemList; | 20 class WorkItemList; |
| 22 | 21 |
| 23 namespace installer { | 22 namespace installer { |
| 24 | 23 |
| 25 class InstallationState; | 24 class InstallationState; |
| 26 class InstallerState; | 25 class InstallerState; |
| 27 class Package; | 26 class MasterPreferences; |
| 28 | 27 |
| 29 // This function installs or updates a new version of Chrome. It returns | 28 // This function installs or updates a new version of Chrome. It returns |
| 30 // install status (failed, new_install, updated etc). | 29 // install status (failed, new_install, updated etc). |
| 31 // | 30 // |
| 32 // setup_path: Path to the executable (setup.exe) as it will be copied | 31 // setup_path: Path to the executable (setup.exe) as it will be copied |
| 33 // to Chrome install folder after install is complete | 32 // to Chrome install folder after install is complete |
| 34 // archive_path: Path to the archive (chrome.7z) as it will be copied | 33 // archive_path: Path to the archive (chrome.7z) as it will be copied |
| 35 // to Chrome install folder after install is complete | 34 // to Chrome install folder after install is complete |
| 36 // install_temp_path: working directory used during install/update. It should | 35 // install_temp_path: working directory used during install/update. It should |
| 37 // also has a sub dir source that contains a complete | 36 // also has a sub dir source that contains a complete |
| 38 // and unpacked Chrome package. | 37 // and unpacked Chrome package. |
| 39 // prefs: master preferences. See chrome/installer/util/master_preferences.h. | 38 // prefs: master preferences. See chrome/installer/util/master_preferences.h. |
| 40 // new_version: new Chrome version that needs to be installed | 39 // new_version: new Chrome version that needs to be installed |
| 41 // package: Represents the target installation folder and all distributions | 40 // package: Represents the target installation folder and all distributions |
| 42 // to be installed in that folder. | 41 // to be installed in that folder. |
| 43 // | 42 // |
| 44 // Note: since caller unpacks Chrome to install_temp_path\source, the caller | 43 // Note: since caller unpacks Chrome to install_temp_path\source, the caller |
| 45 // is responsible for cleaning up install_temp_path. | 44 // is responsible for cleaning up install_temp_path. |
| 46 InstallStatus InstallOrUpdateProduct( | 45 InstallStatus InstallOrUpdateProduct( |
| 47 const InstallationState& original_state, | 46 const InstallationState& original_state, |
| 48 const InstallerState& installer_state, | 47 const InstallerState& installer_state, |
| 49 const FilePath& setup_path, const FilePath& archive_path, | 48 const FilePath& setup_path, |
| 50 const FilePath& install_temp_path, const FilePath& prefs_path, | 49 const FilePath& archive_path, |
| 51 const installer::MasterPreferences& prefs, const Version& new_version, | 50 const FilePath& install_temp_path, |
| 52 const Package& package); | 51 const FilePath& prefs_path, |
| 53 | 52 const installer::MasterPreferences& prefs, |
| 54 | 53 const Version& new_version); |
| 55 | 54 |
| 56 } // namespace installer | 55 } // namespace installer |
| 57 | 56 |
| 58 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 57 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |