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_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 EXTERNAL_EXTENSION_UNINSTALLED, | 94 EXTERNAL_EXTENSION_UNINSTALLED, |
95 NUM_STATES | 95 NUM_STATES |
96 }; | 96 }; |
97 | 97 |
98 // Used to record the reason an extension was disabled. | 98 // Used to record the reason an extension was disabled. |
99 enum DisableReason { | 99 enum DisableReason { |
100 DISABLE_UNKNOWN, | 100 DISABLE_UNKNOWN, |
101 DISABLE_USER_ACTION, | 101 DISABLE_USER_ACTION, |
102 DISABLE_PERMISSIONS_INCREASE, | 102 DISABLE_PERMISSIONS_INCREASE, |
103 DISABLE_RELOAD, | 103 DISABLE_RELOAD, |
| 104 DISABLE_UNSUPPORTED_REQUIREMENT, |
104 DISABLE_LAST, // Not used. | 105 DISABLE_LAST, // Not used. |
105 }; | 106 }; |
106 | 107 |
107 enum InstallType { | 108 enum InstallType { |
108 INSTALL_ERROR, | 109 INSTALL_ERROR, |
109 DOWNGRADE, | 110 DOWNGRADE, |
110 REINSTALL, | 111 REINSTALL, |
111 UPGRADE, | 112 UPGRADE, |
112 NEW_INSTALL | 113 NEW_INSTALL |
113 }; | 114 }; |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 // only the permissions that have added, and for Reason::REMOVED, this would | 1178 // only the permissions that have added, and for Reason::REMOVED, this would |
1178 // only contain the removed permissions. | 1179 // only contain the removed permissions. |
1179 const PermissionSet* permissions; | 1180 const PermissionSet* permissions; |
1180 | 1181 |
1181 UpdatedExtensionPermissionsInfo( | 1182 UpdatedExtensionPermissionsInfo( |
1182 const Extension* extension, | 1183 const Extension* extension, |
1183 const PermissionSet* permissions, | 1184 const PermissionSet* permissions, |
1184 Reason reason); | 1185 Reason reason); |
1185 }; | 1186 }; |
1186 | 1187 |
1187 } // namespace extensions | 1188 } // namespace extensions |
1188 | 1189 |
1189 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1190 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |