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| where suffix is a 26-digit | |
| 94 // alpha-numeric identifier. | |
|
gab
2013/09/06 18:40:08
|suffix| is actually a '.' followed by a 26-charac
zturner
2013/09/06 20:53:16
Done.
| |
| 95 virtual string16 GetBrowserProgIdPrefix(); | |
| 96 | |
| 97 // Returns the Browser ProgId description. | |
| 98 virtual string16 GetBrowserProgIdDesc(); | |
| 99 | |
| 92 virtual string16 GetInstallSubDir(); | 100 virtual string16 GetInstallSubDir(); |
| 93 | 101 |
| 94 virtual string16 GetPublisherName(); | 102 virtual string16 GetPublisherName(); |
| 95 | 103 |
| 96 virtual string16 GetAppDescription(); | 104 virtual string16 GetAppDescription(); |
| 97 | 105 |
| 98 virtual string16 GetLongAppDescription(); | 106 virtual string16 GetLongAppDescription(); |
| 99 | 107 |
| 100 virtual std::string GetSafeBrowsingName(); | 108 virtual std::string GetSafeBrowsingName(); |
| 101 | 109 |
| 102 virtual string16 GetStateKey(); | 110 virtual string16 GetStateKey(); |
| 103 | 111 |
| 104 virtual string16 GetStateMediumKey(); | 112 virtual string16 GetStateMediumKey(); |
| 105 | 113 |
| 106 virtual std::string GetNetworkStatsServer() const; | 114 virtual std::string GetNetworkStatsServer() const; |
| 107 | 115 |
| 108 virtual std::string GetHttpPipeliningTestServer() const; | 116 virtual std::string GetHttpPipeliningTestServer() const; |
| 109 | 117 |
| 110 #if defined(OS_WIN) | 118 #if defined(OS_WIN) |
| 111 virtual string16 GetDistributionData(HKEY root_key); | 119 virtual string16 GetDistributionData(HKEY root_key); |
| 112 #endif | 120 #endif |
| 113 | 121 |
| 114 virtual string16 GetUninstallLinkName(); | 122 virtual string16 GetUninstallLinkName(); |
| 115 | 123 |
| 116 virtual string16 GetUninstallRegPath(); | 124 virtual string16 GetUninstallRegPath(); |
| 117 | 125 |
| 118 virtual string16 GetVersionKey(); | 126 virtual string16 GetVersionKey(); |
| 119 | 127 |
| 128 // Returns true if setting the default browser is a supported operation. | |
|
grt (UTC plus 2)
2013/09/06 02:53:39
it seems that uninstall is the only real use of th
gab
2013/09/06 18:40:08
Hmmm, I'm not sure about that, we usually put NOTR
grt (UTC plus 2)
2013/09/09 18:39:15
I see your point. I find these two methods (IsFooS
| |
| 129 virtual bool IsSetAsDefaultSupported(); | |
| 130 | |
| 131 // Returns true if this distribution can be set as the default browser. | |
| 132 // Note that this is not the same as IsSetAsDefaultSupported, which returns | |
| 133 // true if the browser can EVER be set as default. It is possible for the | |
| 134 // operation to be supported but currently disabled (for example due to | |
| 135 // policy). | |
| 120 virtual bool CanSetAsDefault(); | 136 virtual bool CanSetAsDefault(); |
| 121 | 137 |
| 138 // Forces CanSetAsDefault() to return true. For distributions where | |
| 139 // IsSetAsDefaultSupported() returns false, this function is a no-op. | |
| 140 virtual void DebugEnableSetAsDefault(); | |
| 141 | |
| 122 virtual bool CanCreateDesktopShortcuts(); | 142 virtual bool CanCreateDesktopShortcuts(); |
| 123 | 143 |
| 124 virtual bool GetChromeChannel(string16* channel); | 144 virtual bool GetChromeChannel(string16* channel); |
| 125 | 145 |
| 126 // Returns true if this distribution includes a DelegateExecute verb handler, | 146 // Returns true if this distribution includes a DelegateExecute verb handler, |
| 127 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is | 147 // and provides the CommandExecuteImpl class UUID if |handler_class_uuid| is |
| 128 // non-NULL. | 148 // non-NULL. |
| 129 virtual bool GetCommandExecuteImplClsid(string16* handler_class_uuid); | 149 virtual bool GetCommandExecuteImplClsidString(string16* handler_class_uuid); |
| 150 | |
| 151 #if defined(OS_WIN) | |
| 152 virtual bool GetCommandExecuteImplClsid(CLSID* handler_class_uuid); | |
| 153 #endif | |
| 130 | 154 |
| 131 // Returns true if this distribution uses app_host.exe to run platform apps. | 155 // Returns true if this distribution uses app_host.exe to run platform apps. |
| 132 virtual bool AppHostIsSupported(); | 156 virtual bool AppHostIsSupported(); |
| 133 | 157 |
| 134 virtual void UpdateInstallStatus(bool system_install, | 158 virtual void UpdateInstallStatus(bool system_install, |
| 135 installer::ArchiveType archive_type, | 159 installer::ArchiveType archive_type, |
| 136 installer::InstallStatus install_status); | 160 installer::InstallStatus install_status); |
| 137 | 161 |
| 138 // Returns true if this distribution should set the Omaha experiment_labels | 162 // Returns true if this distribution should set the Omaha experiment_labels |
| 139 // registry value. | 163 // registry value. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 150 | 174 |
| 151 const Type type_; | 175 const Type type_; |
| 152 | 176 |
| 153 private: | 177 private: |
| 154 BrowserDistribution(); | 178 BrowserDistribution(); |
| 155 | 179 |
| 156 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 180 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 157 }; | 181 }; |
| 158 | 182 |
| 159 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 183 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |