| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // |subfolder_type| that this distribution should create shortcuts in. For | 82 // |subfolder_type| that this distribution should create shortcuts in. For |
| 83 // SUBFOLDER_CHROME this returns GetShortcutName(SHORTCUT_CHROME). | 83 // SUBFOLDER_CHROME this returns GetShortcutName(SHORTCUT_CHROME). |
| 84 virtual string16 GetStartMenuShortcutSubfolder(Subfolder subfolder_type); | 84 virtual string16 GetStartMenuShortcutSubfolder(Subfolder subfolder_type); |
| 85 | 85 |
| 86 // Returns the unsuffixed appid of this program. | 86 // Returns the unsuffixed appid of this program. |
| 87 // The AppUserModelId is a property of Windows programs. | 87 // The AppUserModelId is a property of Windows programs. |
| 88 // IMPORTANT: This should only be called by ShellUtil::GetAppId as the appid | 88 // IMPORTANT: This should only be called by ShellUtil::GetAppId as the appid |
| 89 // should be suffixed in all scenarios. | 89 // should be suffixed in all scenarios. |
| 90 virtual string16 GetBaseAppId(); | 90 virtual string16 GetBaseAppId(); |
| 91 | 91 |
| 92 // Returns the Browser ProgId prefix (e.g. ChromeHTML, ChromiumHTM, etc...). |
| 93 // The full id is of the form |prefix|.|suffix| and is limited to a maximum |
| 94 // length of 39 characters including null-terminator. See |
| 95 // http://msdn.microsoft.com/library/aa911706.aspx for details. We define |
| 96 // |suffix| as a fixed-length 26-character alphanumeric identifier, therefore |
| 97 // the return value of this function must have a maximum length of |
| 98 // 39 - 1(null-term) - 26(|suffix|) - 1(dot separator) = 11 characters. |
| 99 virtual string16 GetBrowserProgIdPrefix(); |
| 100 |
| 101 // Returns the Browser ProgId description. |
| 102 virtual string16 GetBrowserProgIdDesc(); |
| 103 |
| 92 virtual string16 GetInstallSubDir(); | 104 virtual string16 GetInstallSubDir(); |
| 93 | 105 |
| 94 virtual string16 GetPublisherName(); | 106 virtual string16 GetPublisherName(); |
| 95 | 107 |
| 96 virtual string16 GetAppDescription(); | 108 virtual string16 GetAppDescription(); |
| 97 | 109 |
| 98 virtual string16 GetLongAppDescription(); | 110 virtual string16 GetLongAppDescription(); |
| 99 | 111 |
| 100 virtual std::string GetSafeBrowsingName(); | 112 virtual std::string GetSafeBrowsingName(); |
| 101 | 113 |
| 102 virtual string16 GetStateKey(); | 114 virtual string16 GetStateKey(); |
| 103 | 115 |
| 104 virtual string16 GetStateMediumKey(); | 116 virtual string16 GetStateMediumKey(); |
| 105 | 117 |
| 106 virtual std::string GetNetworkStatsServer() const; | 118 virtual std::string GetNetworkStatsServer() const; |
| 107 | 119 |
| 108 virtual std::string GetHttpPipeliningTestServer() const; | 120 virtual std::string GetHttpPipeliningTestServer() const; |
| 109 | 121 |
| 110 #if defined(OS_WIN) | 122 #if defined(OS_WIN) |
| 111 virtual string16 GetDistributionData(HKEY root_key); | 123 virtual string16 GetDistributionData(HKEY root_key); |
| 112 #endif | 124 #endif |
| 113 | 125 |
| 114 virtual string16 GetUninstallLinkName(); | 126 virtual string16 GetUninstallLinkName(); |
| 115 | 127 |
| 116 virtual string16 GetUninstallRegPath(); | 128 virtual string16 GetUninstallRegPath(); |
| 117 | 129 |
| 118 virtual string16 GetVersionKey(); | 130 virtual string16 GetVersionKey(); |
| 119 | 131 |
| 132 // Returns true if this distribution can be set as the default browser. |
| 120 virtual bool CanSetAsDefault(); | 133 virtual bool CanSetAsDefault(); |
| 121 | 134 |
| 122 virtual bool CanCreateDesktopShortcuts(); | 135 virtual bool CanCreateDesktopShortcuts(); |
| 123 | 136 |
| 124 virtual bool GetChromeChannel(string16* channel); | 137 virtual bool GetChromeChannel(string16* channel); |
| 125 | 138 |
| 126 // Returns true if this distribution includes a DelegateExecute verb handler, | 139 // Returns true if this distribution includes a DelegateExecute verb handler, |
| 127 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is | 140 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is |
| 128 // non-NULL. | 141 // non-NULL. |
| 129 virtual bool GetCommandExecuteImplClsid(string16* handler_class_uuid); | 142 virtual bool GetCommandExecuteImplClsid(string16* handler_class_uuid); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 150 | 163 |
| 151 const Type type_; | 164 const Type type_; |
| 152 | 165 |
| 153 private: | 166 private: |
| 154 BrowserDistribution(); | 167 BrowserDistribution(); |
| 155 | 168 |
| 156 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 169 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 157 }; | 170 }; |
| 158 | 171 |
| 159 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 172 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |