| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 enum InitFromValueFlags { | 228 enum InitFromValueFlags { |
| 229 NO_FLAGS = 0, | 229 NO_FLAGS = 0, |
| 230 | 230 |
| 231 // Usually, the id of an extension is generated by the "key" property of | 231 // Usually, the id of an extension is generated by the "key" property of |
| 232 // its manifest, but if |REQUIRE_KEY| is not set, a temporary ID will be | 232 // its manifest, but if |REQUIRE_KEY| is not set, a temporary ID will be |
| 233 // generated based on the path. | 233 // generated based on the path. |
| 234 REQUIRE_KEY = 1 << 0, | 234 REQUIRE_KEY = 1 << 0, |
| 235 | 235 |
| 236 // Requires the extension to have an up-to-date manifest version. | 236 // Requires the extension to have an up-to-date manifest version. |
| 237 // Typically, we'll support multiple manifest versions during a version | 237 // Typically, we'll support multiple manifest versions during a version |
| 238 // transition. This flag signals that we want to require the most modern | 238 // transition. This flag signals that we want to require the most modern |
| 239 // manifest version that Chrome understands. | 239 // manifest version that Chrome understands. |
| 240 REQUIRE_MODERN_MANIFEST_VERSION = 1 << 1, | 240 REQUIRE_MODERN_MANIFEST_VERSION = 1 << 1, |
| 241 | 241 |
| 242 // |ALLOW_FILE_ACCESS| indicates that the user is allowing this extension | 242 // |ALLOW_FILE_ACCESS| indicates that the user is allowing this extension |
| 243 // to have file access. If it's not present, then permissions and content | 243 // to have file access. If it's not present, then permissions and content |
| 244 // scripts that match file:/// URLs will be filtered out. | 244 // scripts that match file:/// URLs will be filtered out. |
| 245 ALLOW_FILE_ACCESS = 1 << 2, | 245 ALLOW_FILE_ACCESS = 1 << 2, |
| 246 | 246 |
| 247 // |FROM_WEBSTORE| indicates that the extension was installed from the | 247 // |FROM_WEBSTORE| indicates that the extension was installed from the |
| 248 // Chrome Web Store. | 248 // Chrome Web Store. |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1236 | 1236 |
| 1237 UpdatedExtensionPermissionsInfo( | 1237 UpdatedExtensionPermissionsInfo( |
| 1238 const Extension* extension, | 1238 const Extension* extension, |
| 1239 const PermissionSet* permissions, | 1239 const PermissionSet* permissions, |
| 1240 Reason reason); | 1240 Reason reason); |
| 1241 }; | 1241 }; |
| 1242 | 1242 |
| 1243 } // namespace extensions | 1243 } // namespace extensions |
| 1244 | 1244 |
| 1245 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1245 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |