| 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 // 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 <string> | 10 #include <string> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual base::string16 GetUninstallRegPath(); | 133 virtual base::string16 GetUninstallRegPath(); |
| 134 | 134 |
| 135 // Returns an enum specifying the different ways in which this distribution | 135 // Returns an enum specifying the different ways in which this distribution |
| 136 // is allowed to be set as default. | 136 // is allowed to be set as default. |
| 137 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy(); | 137 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy(); |
| 138 | 138 |
| 139 virtual bool CanCreateDesktopShortcuts(); | 139 virtual bool CanCreateDesktopShortcuts(); |
| 140 | 140 |
| 141 virtual bool GetChromeChannel(base::string16* channel); | 141 virtual bool GetChromeChannel(base::string16* channel); |
| 142 | 142 |
| 143 // Returns true if this distribution includes a DelegateExecute verb handler, | 143 // Returns the CommandExecuteImpl class UUID (or empty string if this |
| 144 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is | 144 // distribution doesn't include a DelegateExecute verb handler). |
| 145 // non-NULL. | 145 virtual base::string16 GetCommandExecuteImplClsid(); |
| 146 virtual bool GetCommandExecuteImplClsid(base::string16* handler_class_uuid); | |
| 147 | 146 |
| 148 virtual void UpdateInstallStatus(bool system_install, | 147 virtual void UpdateInstallStatus(bool system_install, |
| 149 installer::ArchiveType archive_type, | 148 installer::ArchiveType archive_type, |
| 150 installer::InstallStatus install_status); | 149 installer::InstallStatus install_status); |
| 151 | 150 |
| 152 // Returns true if this distribution should set the Omaha experiment_labels | 151 // Returns true if this distribution should set the Omaha experiment_labels |
| 153 // registry value. | 152 // registry value. |
| 154 virtual bool ShouldSetExperimentLabels(); | 153 virtual bool ShouldSetExperimentLabels(); |
| 155 | 154 |
| 156 virtual bool HasUserExperiments(); | 155 virtual bool HasUserExperiments(); |
| 157 | 156 |
| 158 protected: | 157 protected: |
| 159 BrowserDistribution(Type type, scoped_ptr<AppRegistrationData> app_reg_data); | 158 BrowserDistribution(Type type, scoped_ptr<AppRegistrationData> app_reg_data); |
| 160 | 159 |
| 161 template<class DistributionClass> | 160 template<class DistributionClass> |
| 162 static BrowserDistribution* GetOrCreateBrowserDistribution( | 161 static BrowserDistribution* GetOrCreateBrowserDistribution( |
| 163 BrowserDistribution** dist); | 162 BrowserDistribution** dist); |
| 164 | 163 |
| 165 const Type type_; | 164 const Type type_; |
| 166 | 165 |
| 167 scoped_ptr<AppRegistrationData> app_reg_data_; | 166 scoped_ptr<AppRegistrationData> app_reg_data_; |
| 168 | 167 |
| 169 private: | 168 private: |
| 170 BrowserDistribution(); | 169 BrowserDistribution(); |
| 171 | 170 |
| 172 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 171 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 174 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |