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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 DEPRECATED_DISABLE_LAST, // Not used. | 114 DEPRECATED_DISABLE_LAST, // Not used. |
115 }; | 115 }; |
116 | 116 |
117 enum DisableReason { | 117 enum DisableReason { |
118 DISABLE_NONE = 0, | 118 DISABLE_NONE = 0, |
119 DISABLE_USER_ACTION = 1 << 0, | 119 DISABLE_USER_ACTION = 1 << 0, |
120 DISABLE_PERMISSIONS_INCREASE = 1 << 1, | 120 DISABLE_PERMISSIONS_INCREASE = 1 << 1, |
121 DISABLE_RELOAD = 1 << 2, | 121 DISABLE_RELOAD = 1 << 2, |
122 DISABLE_UNSUPPORTED_REQUIREMENT = 1 << 3, | 122 DISABLE_UNSUPPORTED_REQUIREMENT = 1 << 3, |
123 DISABLE_SIDELOAD_WIPEOUT = 1 << 4, | 123 DISABLE_SIDELOAD_WIPEOUT = 1 << 4, |
| 124 DISABLE_UNKNOWN_FROM_SYNC = 1 << 5, |
124 }; | 125 }; |
125 | 126 |
126 enum InstallType { | 127 enum InstallType { |
127 INSTALL_ERROR, | 128 INSTALL_ERROR, |
128 DOWNGRADE, | 129 DOWNGRADE, |
129 REINSTALL, | 130 REINSTALL, |
130 UPGRADE, | 131 UPGRADE, |
131 NEW_INSTALL | 132 NEW_INSTALL |
132 }; | 133 }; |
133 | 134 |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 | 1320 |
1320 UpdatedExtensionPermissionsInfo( | 1321 UpdatedExtensionPermissionsInfo( |
1321 const Extension* extension, | 1322 const Extension* extension, |
1322 const PermissionSet* permissions, | 1323 const PermissionSet* permissions, |
1323 Reason reason); | 1324 Reason reason); |
1324 }; | 1325 }; |
1325 | 1326 |
1326 } // namespace extensions | 1327 } // namespace extensions |
1327 | 1328 |
1328 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1329 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |