| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Returns the executable filename (not path) that contains the product icon. | 74 // Returns the executable filename (not path) that contains the product icon. |
| 75 virtual base::string16 GetIconFilename(); | 75 virtual base::string16 GetIconFilename(); |
| 76 | 76 |
| 77 // Returns the localized name of the subfolder in the Start Menu identified by | 77 // Returns the localized name of the subfolder in the Start Menu identified by |
| 78 // |subfolder_type| that this distribution should create shortcuts in. For | 78 // |subfolder_type| that this distribution should create shortcuts in. For |
| 79 // SUBFOLDER_CHROME this returns GetShortcutName(). | 79 // SUBFOLDER_CHROME this returns GetShortcutName(). |
| 80 virtual base::string16 GetStartMenuShortcutSubfolder( | 80 virtual base::string16 GetStartMenuShortcutSubfolder( |
| 81 Subfolder subfolder_type); | 81 Subfolder subfolder_type); |
| 82 | 82 |
| 83 // Returns the Browser ProgId prefix (e.g. ChromeHTML, ChromiumHTM, etc...). | |
| 84 // The full id is of the form |prefix|.|suffix| and is limited to a maximum | |
| 85 // length of 39 characters including null-terminator. See | |
| 86 // http://msdn.microsoft.com/library/aa911706.aspx for details. We define | |
| 87 // |suffix| as a fixed-length 26-character alphanumeric identifier, therefore | |
| 88 // the return value of this function must have a maximum length of | |
| 89 // 39 - 1(null-term) - 26(|suffix|) - 1(dot separator) = 11 characters. | |
| 90 virtual base::string16 GetBrowserProgIdPrefix(); | |
| 91 | |
| 92 // Returns the Browser ProgId description. | |
| 93 virtual base::string16 GetBrowserProgIdDesc(); | |
| 94 | |
| 95 virtual base::string16 GetPublisherName(); | 83 virtual base::string16 GetPublisherName(); |
| 96 | 84 |
| 97 virtual base::string16 GetAppDescription(); | 85 virtual base::string16 GetAppDescription(); |
| 98 | 86 |
| 99 virtual base::string16 GetLongAppDescription(); | 87 virtual base::string16 GetLongAppDescription(); |
| 100 | 88 |
| 101 virtual std::string GetSafeBrowsingName(); | 89 virtual std::string GetSafeBrowsingName(); |
| 102 | 90 |
| 103 #if defined(OS_WIN) | 91 #if defined(OS_WIN) |
| 104 virtual base::string16 GetDistributionData(HKEY root_key); | 92 virtual base::string16 GetDistributionData(HKEY root_key); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 124 |
| 137 std::unique_ptr<AppRegistrationData> app_reg_data_; | 125 std::unique_ptr<AppRegistrationData> app_reg_data_; |
| 138 | 126 |
| 139 private: | 127 private: |
| 140 BrowserDistribution(); | 128 BrowserDistribution(); |
| 141 | 129 |
| 142 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 130 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 143 }; | 131 }; |
| 144 | 132 |
| 145 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 133 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |