| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ |
| 6 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ | 6 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/installer/util/browser_distribution.h" | 9 #include "chrome/installer/util/browser_distribution.h" |
| 10 #include "chrome/installer/util/google_chrome_distribution.h" | 10 #include "chrome/installer/util/google_chrome_distribution.h" |
| 11 #include "chrome/installer/util/l10n_string_util.h" | 11 #include "chrome/installer/util/l10n_string_util.h" |
| 12 #include "chrome/installer/util/util_constants.h" | 12 #include "chrome/installer/util/util_constants.h" |
| 13 | 13 |
| 14 namespace installer_util { | 14 namespace installer { |
| 15 class MasterPreferences; | 15 class MasterPreferences; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs | 18 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs |
| 19 // distribution which can co-exist with other Google Chrome distributions. | 19 // distribution which can co-exist with other Google Chrome distributions. |
| 20 // Google Chrome Sxs distribution is installed to a different path, runs | 20 // Google Chrome Sxs distribution is installed to a different path, runs |
| 21 // alongside with normally installed Google Chrome, and is updated separately. | 21 // alongside with normally installed Google Chrome, and is updated separately. |
| 22 // It is mainly used for developer preview and testing, and is disabled for | 22 // It is mainly used for developer preview and testing, and is disabled for |
| 23 // system level install and setting as default browser. | 23 // system level install and setting as default browser. |
| 24 class GoogleChromeSxSDistribution : public GoogleChromeDistribution { | 24 class GoogleChromeSxSDistribution : public GoogleChromeDistribution { |
| 25 public: | 25 public: |
| 26 virtual std::wstring GetAppShortCutName(); | 26 virtual std::wstring GetAppShortCutName(); |
| 27 virtual std::wstring GetBrowserAppId(); | 27 virtual std::wstring GetBrowserAppId(); |
| 28 virtual std::wstring GetInstallSubDir(); | 28 virtual std::wstring GetInstallSubDir(); |
| 29 virtual std::wstring GetUninstallRegPath(); | 29 virtual std::wstring GetUninstallRegPath(); |
| 30 virtual bool CanSetAsDefault(); | 30 virtual bool CanSetAsDefault(); |
| 31 virtual int GetIconIndex(); | 31 virtual int GetIconIndex(); |
| 32 virtual bool GetChromeChannel(std::wstring* channel); | 32 virtual bool GetChromeChannel(std::wstring* channel); |
| 33 // returns the channel name for GoogleChromeSxSDistribution | 33 // returns the channel name for GoogleChromeSxSDistribution |
| 34 static std::wstring ChannelName(); | 34 static std::wstring ChannelName(); |
| 35 virtual void AppendUninstallCommandLineFlags(CommandLine* cmd_line); | 35 virtual void AppendUninstallCommandLineFlags(CommandLine* cmd_line); |
| 36 private: | 36 private: |
| 37 friend class BrowserDistribution; | 37 friend class BrowserDistribution; |
| 38 | 38 |
| 39 // Disallow construction from non-friends. | 39 // Disallow construction from non-friends. |
| 40 explicit GoogleChromeSxSDistribution( | 40 explicit GoogleChromeSxSDistribution( |
| 41 const installer_util::MasterPreferences& prefs); | 41 const installer::MasterPreferences& prefs); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ | 44 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ |
| OLD | NEW |