| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/extensions/extension_permissions_api_constants.h" | 5 #include "chrome/browser/extensions/extension_permissions_api_constants.h" |
| 6 | 6 |
| 7 namespace extension_permissions_module_constants { | 7 namespace extension_permissions_module_constants { |
| 8 | 8 |
| 9 const char kApisKey[] = "permissions"; | 9 const char kApisKey[] = "permissions"; |
| 10 const char kOriginsKey[] = "origins"; |
| 10 | 11 |
| 11 const char kCantRemoveRequiredPermissionsError[] = | 12 const char kCantRemoveRequiredPermissionsError[] = |
| 12 "You cannot remove required permissions."; | 13 "You cannot remove required permissions."; |
| 13 const char kNotInOptionalPermissionsError[] = | 14 const char kNotInOptionalPermissionsError[] = |
| 14 "Optional permissions must be listed in extension manifest."; | 15 "Optional permissions must be listed in extension manifest."; |
| 15 const char kNotWhitelistedError[] = | 16 const char kNotWhitelistedError[] = |
| 16 "The optional permissions API does not support '%s'."; | 17 "The optional permissions API does not support '*'."; |
| 17 const char kUnknownPermissionError[] = | 18 const char kUnknownPermissionError[] = |
| 18 "'%s' is not a recognized permission."; | 19 "'*' is not a recognized permission."; |
| 20 const char kInvalidOrigin[] = |
| 21 "Invalid value for origin pattern *: *"; |
| 19 | 22 |
| 20 const char kOnAdded[] = "experimental.permissions.onAdded"; | 23 const char kOnAdded[] = "experimental.permissions.onAdded"; |
| 21 const char kOnRemoved[] = "experimental.permissions.onRemoved"; | 24 const char kOnRemoved[] = "experimental.permissions.onRemoved"; |
| 22 | 25 |
| 23 }; // namespace extension_permissions_module_constants | 26 }; // namespace extension_permissions_module_constants |
| OLD | NEW |