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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 Type GetType() const { return type_; } | 62 Type GetType() const { return type_; } |
63 | 63 |
64 virtual void DoPostUninstallOperations(const Version& version, | 64 virtual void DoPostUninstallOperations(const Version& version, |
65 const FilePath& local_data_path, | 65 const FilePath& local_data_path, |
66 const string16& distribution_data); | 66 const string16& distribution_data); |
67 | 67 |
68 virtual string16 GetAppGuid(); | 68 virtual string16 GetAppGuid(); |
69 | 69 |
70 // Returns the name by which the program is registered with Default Programs. | 70 // Returns the name by which the program is registered with Default Programs. |
71 // This is not a localized string suitable for presenting to a user. | 71 // This is not a localized string suitable for presenting to a user. |
72 // This name should then usually be suffixed for user-level installs. | 72 // The name returned will already be suffixed, if necessary, for user-level |
73 virtual string16 GetApplicationName(); | 73 // installs. |
| 74 string16 GetAppName(); |
| 75 |
| 76 // Returns the unsuffixed application name of this program. |
| 77 // IMPORTANT: This should only be called by the installer which needs to make |
| 78 // decisions on the suffixing of the upcoming install (or by logging code that |
| 79 // doesn't care about the suffixes), not by external callers at run-time. |
| 80 virtual string16 GetUnsuffixedAppName(); |
74 | 81 |
75 // Returns the localized name of the program. | 82 // Returns the localized name of the program. |
76 virtual string16 GetAppShortCutName(); | 83 virtual string16 GetAppShortCutName(); |
77 | 84 |
78 virtual string16 GetAlternateApplicationName(); | 85 virtual string16 GetAlternateApplicationName(); |
79 | 86 |
80 virtual string16 GetBrowserAppId(); | 87 virtual string16 GetBrowserAppId(); |
81 | 88 |
82 virtual string16 GetInstallSubDir(); | 89 virtual string16 GetInstallSubDir(); |
83 | 90 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 170 |
164 const Type type_; | 171 const Type type_; |
165 | 172 |
166 private: | 173 private: |
167 BrowserDistribution(); | 174 BrowserDistribution(); |
168 | 175 |
169 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 176 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
170 }; | 177 }; |
171 | 178 |
172 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 179 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
OLD | NEW |