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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 const Type type_; | 164 const Type type_; |
165 | 165 |
166 private: | 166 private: |
167 BrowserDistribution(); | 167 BrowserDistribution(); |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 169 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 172 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
OLD | NEW |