| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 NUM_LOCATIONS | 93 NUM_LOCATIONS |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 enum State { | 96 enum State { |
| 97 DISABLED = 0, | 97 DISABLED = 0, |
| 98 ENABLED, | 98 ENABLED, |
| 99 // An external extension that the user uninstalled. We should not reinstall | 99 // An external extension that the user uninstalled. We should not reinstall |
| 100 // such extensions on startup. | 100 // such extensions on startup. |
| 101 EXTERNAL_EXTENSION_UNINSTALLED, | 101 EXTERNAL_EXTENSION_UNINSTALLED, |
| 102 // Special state for component extensions, since they are always loaded by |
| 103 // the component loader, and should never be auto-installed on startup. |
| 104 ENABLED_COMPONENT, |
| 102 NUM_STATES | 105 NUM_STATES |
| 103 }; | 106 }; |
| 104 | 107 |
| 105 // Used to record the reason an extension was disabled. | 108 // Used to record the reason an extension was disabled. |
| 106 enum DeprecatedDisableReason { | 109 enum DeprecatedDisableReason { |
| 107 DEPRECATED_DISABLE_UNKNOWN, | 110 DEPRECATED_DISABLE_UNKNOWN, |
| 108 DEPRECATED_DISABLE_USER_ACTION, | 111 DEPRECATED_DISABLE_USER_ACTION, |
| 109 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, | 112 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, |
| 110 DEPRECATED_DISABLE_RELOAD, | 113 DEPRECATED_DISABLE_RELOAD, |
| 111 DEPRECATED_DISABLE_LAST, // Not used. | 114 DEPRECATED_DISABLE_LAST, // Not used. |
| (...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 | 1311 |
| 1309 UpdatedExtensionPermissionsInfo( | 1312 UpdatedExtensionPermissionsInfo( |
| 1310 const Extension* extension, | 1313 const Extension* extension, |
| 1311 const PermissionSet* permissions, | 1314 const PermissionSet* permissions, |
| 1312 Reason reason); | 1315 Reason reason); |
| 1313 }; | 1316 }; |
| 1314 | 1317 |
| 1315 } // namespace extensions | 1318 } // namespace extensions |
| 1316 | 1319 |
| 1317 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1320 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |