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 <memory> | 10 #include <memory> |
(...skipping 27 matching lines...) Expand all Loading... |
38 const AppRegistrationData& GetAppRegistrationData() const; | 38 const AppRegistrationData& GetAppRegistrationData() const; |
39 base::string16 GetStateKey() const; | 39 base::string16 GetStateKey() const; |
40 base::string16 GetStateMediumKey() const; | 40 base::string16 GetStateMediumKey() const; |
41 base::string16 GetVersionKey() const; | 41 base::string16 GetVersionKey() const; |
42 | 42 |
43 virtual void DoPostUninstallOperations( | 43 virtual void DoPostUninstallOperations( |
44 const base::Version& version, | 44 const base::Version& version, |
45 const base::FilePath& local_data_path, | 45 const base::FilePath& local_data_path, |
46 const base::string16& distribution_data); | 46 const base::string16& distribution_data); |
47 | 47 |
48 // Returns the unsuffixed application name of this program. | |
49 // This is the base of the name registered with Default Programs on Windows. | |
50 // IMPORTANT: This should only be called by the installer which needs to make | |
51 // decisions on the suffixing of the upcoming install, not by external callers | |
52 // at run-time. | |
53 virtual base::string16 GetBaseAppName(); | |
54 | |
55 // Returns the localized display name of this distribution. | 48 // Returns the localized display name of this distribution. |
56 virtual base::string16 GetDisplayName(); | 49 virtual base::string16 GetDisplayName(); |
57 | 50 |
58 // Returns the localized name of the Chrome shortcut for this distribution. | 51 // Returns the localized name of the Chrome shortcut for this distribution. |
59 virtual base::string16 GetShortcutName(); | 52 virtual base::string16 GetShortcutName(); |
60 | 53 |
61 // Returns the localized name of the subfolder in the Start Menu identified by | 54 // Returns the localized name of the subfolder in the Start Menu identified by |
62 // |subfolder_type| that this distribution should create shortcuts in. For | 55 // |subfolder_type| that this distribution should create shortcuts in. For |
63 // SUBFOLDER_CHROME this returns GetShortcutName(). | 56 // SUBFOLDER_CHROME this returns GetShortcutName(). |
64 virtual base::string16 GetStartMenuShortcutSubfolder( | 57 virtual base::string16 GetStartMenuShortcutSubfolder( |
(...skipping 25 matching lines...) Expand all Loading... |
90 | 83 |
91 std::unique_ptr<AppRegistrationData> app_reg_data_; | 84 std::unique_ptr<AppRegistrationData> app_reg_data_; |
92 | 85 |
93 private: | 86 private: |
94 BrowserDistribution(); | 87 BrowserDistribution(); |
95 | 88 |
96 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 89 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
97 }; | 90 }; |
98 | 91 |
99 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 92 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
OLD | NEW |