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 #ifndef CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Items are in the PENDING state until they've been installed, or the | 57 // Items are in the PENDING state until they've been installed, or the |
58 // install has failed or been canceled. | 58 // install has failed or been canceled. |
59 enum State { | 59 enum State { |
60 STATE_PENDING, | 60 STATE_PENDING, |
61 STATE_INSTALLED, | 61 STATE_INSTALLED, |
62 STATE_FAILED | 62 STATE_FAILED |
63 }; | 63 }; |
64 | 64 |
65 Item(); | 65 Item(); |
66 | 66 |
| 67 // Gets the localized name, formatted for display in the prompt or bubble. |
| 68 string16 GetNameForDisplay(); |
| 69 |
67 std::string id; | 70 std::string id; |
68 std::string manifest; | 71 std::string manifest; |
69 std::string localized_name; | 72 std::string localized_name; |
70 State state; | 73 State state; |
71 }; | 74 }; |
72 | 75 |
73 typedef std::vector<Item> ItemList; | 76 typedef std::vector<Item> ItemList; |
74 | 77 |
75 BundleInstaller(Profile* profile, const ItemList& items); | 78 BundleInstaller(Profile* profile, const ItemList& items); |
76 virtual ~BundleInstaller(); | 79 virtual ~BundleInstaller(); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 Profile* profile_; | 185 Profile* profile_; |
183 | 186 |
184 Delegate* delegate_; | 187 Delegate* delegate_; |
185 | 188 |
186 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); | 189 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); |
187 }; | 190 }; |
188 | 191 |
189 } // namespace extensions | 192 } // namespace extensions |
190 | 193 |
191 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 194 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
OLD | NEW |