| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual base::string16 GetAppDescription(); | 124 virtual base::string16 GetAppDescription(); |
| 125 | 125 |
| 126 virtual base::string16 GetLongAppDescription(); | 126 virtual base::string16 GetLongAppDescription(); |
| 127 | 127 |
| 128 virtual std::string GetSafeBrowsingName(); | 128 virtual std::string GetSafeBrowsingName(); |
| 129 | 129 |
| 130 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
| 131 virtual base::string16 GetDistributionData(HKEY root_key); | 131 virtual base::string16 GetDistributionData(HKEY root_key); |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 // Returns the path "Software\<PRODUCT>". This subkey of HKEY_CURRENT_USER can |
| 135 // be used to save and restore state. With the exception of data that is used |
| 136 // by third parties (e.g., a subkey that specifies the location of a native |
| 137 // messaging host's manifest), state stored in this key is removed during |
| 138 // uninstall when the user chooses to also delete their browsing data. |
| 139 base::string16 GetRegistryPath(); |
| 140 |
| 134 virtual base::string16 GetUninstallRegPath(); | 141 virtual base::string16 GetUninstallRegPath(); |
| 135 | 142 |
| 136 // Returns an enum specifying the different ways in which this distribution | 143 // Returns an enum specifying the different ways in which this distribution |
| 137 // is allowed to be set as default. | 144 // is allowed to be set as default. |
| 138 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy(); | 145 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy(); |
| 139 | 146 |
| 140 virtual bool CanCreateDesktopShortcuts(); | 147 virtual bool CanCreateDesktopShortcuts(); |
| 141 | 148 |
| 142 virtual bool GetChromeChannel(base::string16* channel); | 149 virtual bool GetChromeChannel(base::string16* channel); |
| 143 | 150 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 166 | 173 |
| 167 scoped_ptr<AppRegistrationData> app_reg_data_; | 174 scoped_ptr<AppRegistrationData> app_reg_data_; |
| 168 | 175 |
| 169 private: | 176 private: |
| 170 BrowserDistribution(); | 177 BrowserDistribution(); |
| 171 | 178 |
| 172 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 179 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 173 }; | 180 }; |
| 174 | 181 |
| 175 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 182 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |