| 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 19 matching lines...) Expand all Loading... |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 enum ShortcutType { | 32 enum ShortcutType { |
| 33 SHORTCUT_CHROME, | 33 SHORTCUT_CHROME, |
| 34 SHORTCUT_CHROME_ALTERNATE, | 34 SHORTCUT_CHROME_ALTERNATE, |
| 35 SHORTCUT_APP_LAUNCHER | 35 SHORTCUT_APP_LAUNCHER |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 enum Subfolder { | 38 enum Subfolder { |
| 39 SUBFOLDER_CHROME, | 39 SUBFOLDER_CHROME, |
| 40 // TODO(calamity): add SUBFOLDER_APPS when refactoring chrome app dir code. | 40 SUBFOLDER_APPS, |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 virtual ~BrowserDistribution() {} | 43 virtual ~BrowserDistribution() {} |
| 44 | 44 |
| 45 static BrowserDistribution* GetDistribution(); | 45 static BrowserDistribution* GetDistribution(); |
| 46 | 46 |
| 47 static BrowserDistribution* GetSpecificDistribution(Type type); | 47 static BrowserDistribution* GetSpecificDistribution(Type type); |
| 48 | 48 |
| 49 Type GetType() const { return type_; } | 49 Type GetType() const { return type_; } |
| 50 | 50 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 const Type type_; | 151 const Type type_; |
| 152 | 152 |
| 153 private: | 153 private: |
| 154 BrowserDistribution(); | 154 BrowserDistribution(); |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 156 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 159 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
| OLD | NEW |