| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 declares a class that contains various method related to branding. | 5 // This file declares a class that contains various method related to branding. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chrome/installer/util/util_constants.h" | 11 #include "chrome/installer/util/util_constants.h" |
| 12 #include "chrome/installer/util/version.h" | 12 #include "chrome/installer/util/version.h" |
| 13 | 13 |
| 14 class BrowserDistribution { | 14 class BrowserDistribution { |
| 15 public: | 15 public: |
| 16 virtual ~BrowserDistribution() {} | 16 virtual ~BrowserDistribution() {} |
| 17 | 17 |
| 18 static BrowserDistribution* GetDistribution(); | 18 static BrowserDistribution* GetDistribution(); |
| 19 | 19 |
| 20 virtual void DoPostUninstallOperations(const installer::Version& version); | 20 virtual void DoPostUninstallOperations(const installer::Version& version); |
| 21 | 21 |
| 22 virtual void DoPreUninstallOperations(); | |
| 23 | |
| 24 virtual std::wstring GetApplicationName(); | 22 virtual std::wstring GetApplicationName(); |
| 25 | 23 |
| 26 virtual std::wstring GetInstallSubDir(); | 24 virtual std::wstring GetInstallSubDir(); |
| 27 | 25 |
| 28 virtual std::wstring GetPublisherName(); | 26 virtual std::wstring GetPublisherName(); |
| 29 | 27 |
| 30 virtual int GetInstallReturnCode( | 28 virtual int GetInstallReturnCode( |
| 31 installer_util::InstallStatus install_status); | 29 installer_util::InstallStatus install_status); |
| 32 | 30 |
| 33 virtual std::wstring GetUninstallLinkName(); | 31 virtual std::wstring GetUninstallLinkName(); |
| 34 | 32 |
| 35 virtual std::wstring GetUninstallRegPath(); | 33 virtual std::wstring GetUninstallRegPath(); |
| 36 | 34 |
| 37 virtual std::wstring GetVersionKey(); | 35 virtual std::wstring GetVersionKey(); |
| 38 | 36 |
| 39 virtual void UpdateDiffInstallStatus(bool system_install, | 37 virtual void UpdateDiffInstallStatus(bool system_install, |
| 40 bool incremental_install, installer_util::InstallStatus install_status); | 38 bool incremental_install, installer_util::InstallStatus install_status); |
| 41 | 39 |
| 42 protected: | 40 protected: |
| 43 BrowserDistribution() {} | 41 BrowserDistribution() {} |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 44 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 47 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| 50 | 48 |
| OLD | NEW |