| OLD | NEW |
| 1 // Copyright (c) 2011 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_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 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs | 14 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs |
| 15 // distribution which can co-exist with other Google Chrome distributions. | 15 // distribution which can co-exist with other Google Chrome distributions. |
| 16 // Google Chrome Sxs distribution is installed to a different path, runs | 16 // Google Chrome Sxs distribution is installed to a different path, runs |
| 17 // alongside with normally installed Google Chrome, and is updated separately. | 17 // alongside with normally installed Google Chrome, and is updated separately. |
| 18 // It is mainly used for developer preview and testing, and is disabled for | 18 // It is mainly used for developer preview and testing, and is disabled for |
| 19 // system level install and setting as default browser. | 19 // system level install and setting as default browser. |
| 20 class GoogleChromeSxSDistribution : public GoogleChromeDistribution { | 20 class GoogleChromeSxSDistribution : public GoogleChromeDistribution { |
| 21 public: | 21 public: |
| 22 virtual std::wstring GetApplicationName() OVERRIDE; | 22 virtual std::wstring GetApplicationName() OVERRIDE; |
| 23 virtual std::wstring GetAppShortCutName() OVERRIDE; | 23 virtual std::wstring GetAppShortCutName() OVERRIDE; |
| 24 virtual std::wstring GetBrowserAppId() OVERRIDE; | 24 virtual std::wstring GetBrowserAppId() OVERRIDE; |
| 25 virtual std::wstring GetInstallSubDir() OVERRIDE; | 25 virtual std::wstring GetInstallSubDir() OVERRIDE; |
| 26 virtual std::wstring GetUninstallRegPath() OVERRIDE; | 26 virtual std::wstring GetUninstallRegPath() OVERRIDE; |
| 27 virtual bool CanSetAsDefault() OVERRIDE; | 27 virtual bool CanSetAsDefault() OVERRIDE; |
| 28 virtual int GetIconIndex() OVERRIDE; | 28 virtual int GetIconIndex() OVERRIDE; |
| 29 virtual bool GetChromeChannel(std::wstring* channel) OVERRIDE; | 29 virtual bool GetChromeChannel(std::wstring* channel) OVERRIDE; |
| 30 virtual bool GetDelegateExecuteHandlerData(string16* handler_class_uuid, |
| 31 string16* type_lib_uuid, |
| 32 string16* type_lib_version, |
| 33 string16* interface_uuid) OVERRIDE; |
| 30 // returns the channel name for GoogleChromeSxSDistribution | 34 // returns the channel name for GoogleChromeSxSDistribution |
| 31 static std::wstring ChannelName(); | 35 static std::wstring ChannelName(); |
| 32 private: | 36 private: |
| 33 friend class BrowserDistribution; | 37 friend class BrowserDistribution; |
| 34 | 38 |
| 35 // Disallow construction from non-friends. | 39 // Disallow construction from non-friends. |
| 36 GoogleChromeSxSDistribution(); | 40 GoogleChromeSxSDistribution(); |
| 37 }; | 41 }; |
| 38 | 42 |
| 39 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ | 43 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ |
| OLD | NEW |