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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 DISABLE_RELOAD = 1 << 2, | 94 DISABLE_RELOAD = 1 << 2, |
95 DISABLE_UNSUPPORTED_REQUIREMENT = 1 << 3, | 95 DISABLE_UNSUPPORTED_REQUIREMENT = 1 << 3, |
96 DISABLE_SIDELOAD_WIPEOUT = 1 << 4, | 96 DISABLE_SIDELOAD_WIPEOUT = 1 << 4, |
97 DISABLE_UNKNOWN_FROM_SYNC = 1 << 5, | 97 DISABLE_UNKNOWN_FROM_SYNC = 1 << 5, |
98 DISABLE_PERMISSIONS_CONSENT = 1 << 6, // Unused - abandoned experiment. | 98 DISABLE_PERMISSIONS_CONSENT = 1 << 6, // Unused - abandoned experiment. |
99 DISABLE_KNOWN_DISABLED = 1 << 7, | 99 DISABLE_KNOWN_DISABLED = 1 << 7, |
100 DISABLE_NOT_VERIFIED = 1 << 8, // Disabled because we could not verify | 100 DISABLE_NOT_VERIFIED = 1 << 8, // Disabled because we could not verify |
101 // the install. | 101 // the install. |
102 DISABLE_GREYLIST = 1 << 9, | 102 DISABLE_GREYLIST = 1 << 9, |
103 DISABLE_CORRUPTED = 1 << 10, | 103 DISABLE_CORRUPTED = 1 << 10, |
| 104 DISABLE_REMOTE_INSTALL = 1 << 11 |
104 }; | 105 }; |
105 | 106 |
106 enum InstallType { | 107 enum InstallType { |
107 INSTALL_ERROR, | 108 INSTALL_ERROR, |
108 DOWNGRADE, | 109 DOWNGRADE, |
109 REINSTALL, | 110 REINSTALL, |
110 UPGRADE, | 111 UPGRADE, |
111 NEW_INSTALL | 112 NEW_INSTALL |
112 }; | 113 }; |
113 | 114 |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 549 |
549 UpdatedExtensionPermissionsInfo( | 550 UpdatedExtensionPermissionsInfo( |
550 const Extension* extension, | 551 const Extension* extension, |
551 const PermissionSet* permissions, | 552 const PermissionSet* permissions, |
552 Reason reason); | 553 Reason reason); |
553 }; | 554 }; |
554 | 555 |
555 } // namespace extensions | 556 } // namespace extensions |
556 | 557 |
557 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 558 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
OLD | NEW |