Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 EXTENSIONS_COMMON_EXTENSION_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSION_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 | 55 |
| 56 typedef std::map<const std::string, linked_ptr<ManifestData> > | 56 typedef std::map<const std::string, linked_ptr<ManifestData> > |
| 57 ManifestDataMap; | 57 ManifestDataMap; |
| 58 | 58 |
| 59 enum State { | 59 enum State { |
| 60 DISABLED = 0, | 60 DISABLED = 0, |
| 61 ENABLED, | 61 ENABLED, |
| 62 // An external extension that the user uninstalled. We should not reinstall | 62 // An external extension that the user uninstalled. We should not reinstall |
| 63 // such extensions on startup. | 63 // such extensions on startup. |
| 64 EXTERNAL_EXTENSION_UNINSTALLED, | 64 EXTERNAL_EXTENSION_UNINSTALLED, |
| 65 // Special state for component extensions, since they are always loaded by | |
| 66 // the component loader, and should never be auto-installed on startup. | |
| 67 ENABLED_COMPONENT, | |
|
tapted
2014/08/13 00:25:07
It's annoying, but I think we need to keep a place
Anand Mistry (off Chromium)
2014/08/13 01:53:15
Done.
| |
| 68 NUM_STATES | 65 NUM_STATES |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 // Used to record the reason an extension was disabled. | 68 // Used to record the reason an extension was disabled. |
| 72 enum DeprecatedDisableReason { | 69 enum DeprecatedDisableReason { |
| 73 DEPRECATED_DISABLE_UNKNOWN, | 70 DEPRECATED_DISABLE_UNKNOWN, |
| 74 DEPRECATED_DISABLE_USER_ACTION, | 71 DEPRECATED_DISABLE_USER_ACTION, |
| 75 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, | 72 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, |
| 76 DEPRECATED_DISABLE_RELOAD, | 73 DEPRECATED_DISABLE_RELOAD, |
| 77 DEPRECATED_DISABLE_LAST, // Not used. | 74 DEPRECATED_DISABLE_LAST, // Not used. |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 561 | 558 |
| 562 UpdatedExtensionPermissionsInfo( | 559 UpdatedExtensionPermissionsInfo( |
| 563 const Extension* extension, | 560 const Extension* extension, |
| 564 const PermissionSet* permissions, | 561 const PermissionSet* permissions, |
| 565 Reason reason); | 562 Reason reason); |
| 566 }; | 563 }; |
| 567 | 564 |
| 568 } // namespace extensions | 565 } // namespace extensions |
| 569 | 566 |
| 570 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 567 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |