Chromium Code Reviews| 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 should 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 |
| 135 // Forces CanSetAsDefault() to return true. For distributions where | |
| 136 // IsSetAsDefaultSupported() returns false, this function is a no-op. | |
| 137 virtual void DebugEnableSetAsDefault(); | |
| 138 | |
| 122 virtual bool CanCreateDesktopShortcuts(); | 139 virtual bool CanCreateDesktopShortcuts(); |
| 123 | 140 |
| 124 virtual bool GetChromeChannel(string16* channel); | 141 virtual bool GetChromeChannel(string16* channel); |
| 125 | 142 |
| 126 // Returns true if this distribution includes a DelegateExecute verb handler, | 143 // Returns true if this distribution includes a DelegateExecute verb handler, |
| 127 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is | 144 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is |
| 128 // non-NULL. | 145 // non-NULL. |
| 129 virtual bool GetCommandExecuteImplClsid(string16* handler_class_uuid); | 146 virtual bool GetCommandExecuteImplClsidString(string16* handler_class_uuid); |
|
grt (UTC plus 2)
2013/09/09 18:39:15
please revert this to its original name to reduce
| |
| 130 | 147 |
| 131 // Returns true if this distribution uses app_host.exe to run platform apps. | 148 // Returns true if this distribution uses app_host.exe to run platform apps. |
| 132 virtual bool AppHostIsSupported(); | 149 virtual bool AppHostIsSupported(); |
| 133 | 150 |
| 134 virtual void UpdateInstallStatus(bool system_install, | 151 virtual void UpdateInstallStatus(bool system_install, |
| 135 installer::ArchiveType archive_type, | 152 installer::ArchiveType archive_type, |
| 136 installer::InstallStatus install_status); | 153 installer::InstallStatus install_status); |
| 137 | 154 |
| 138 // Returns true if this distribution should set the Omaha experiment_labels | 155 // Returns true if this distribution should set the Omaha experiment_labels |
| 139 // registry value. | 156 // registry value. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 150 | 167 |
| 151 const Type type_; | 168 const Type type_; |
| 152 | 169 |
| 153 private: | 170 private: |
| 154 BrowserDistribution(); | 171 BrowserDistribution(); |
| 155 | 172 |
| 156 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 173 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 157 }; | 174 }; |
| 158 | 175 |
| 159 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 176 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |