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 | 65 // DEPRECATED: Special state for component extensions. |
66 // the component loader, and should never be auto-installed on startup. | 66 // Maintained as a placeholder since states may be stored to disk. |
67 ENABLED_COMPONENT, | 67 ENABLED_COMPONENT_DEPRECATED, |
68 NUM_STATES | 68 NUM_STATES |
69 }; | 69 }; |
70 | 70 |
71 // Used to record the reason an extension was disabled. | 71 // Used to record the reason an extension was disabled. |
72 enum DeprecatedDisableReason { | 72 enum DeprecatedDisableReason { |
73 DEPRECATED_DISABLE_UNKNOWN, | 73 DEPRECATED_DISABLE_UNKNOWN, |
74 DEPRECATED_DISABLE_USER_ACTION, | 74 DEPRECATED_DISABLE_USER_ACTION, |
75 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, | 75 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, |
76 DEPRECATED_DISABLE_RELOAD, | 76 DEPRECATED_DISABLE_RELOAD, |
77 DEPRECATED_DISABLE_LAST, // Not used. | 77 DEPRECATED_DISABLE_LAST, // Not used. |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 561 |
562 UpdatedExtensionPermissionsInfo( | 562 UpdatedExtensionPermissionsInfo( |
563 const Extension* extension, | 563 const Extension* extension, |
564 const PermissionSet* permissions, | 564 const PermissionSet* permissions, |
565 Reason reason); | 565 Reason reason); |
566 }; | 566 }; |
567 | 567 |
568 } // namespace extensions | 568 } // namespace extensions |
569 | 569 |
570 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 570 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
OLD | NEW |