| 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 // Constants used for the Tabs API and the Windows API. | 5 // Constants used for the Tabs API and the Windows API. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ |
| 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 namespace extension_permissions_module_constants { | 11 namespace extension_permissions_module_constants { |
| 12 | 12 |
| 13 // Keys used in serializing permissions data and events. | 13 // Keys used in serializing permissions data and events. |
| 14 extern const char kApisKey[]; | 14 extern const char kApisKey[]; |
| 15 extern const char kOriginsKey[]; |
| 15 | 16 |
| 16 // Error messages. | 17 // Error messages. |
| 17 extern const char kCantRemoveRequiredPermissionsError[]; | 18 extern const char kCantRemoveRequiredPermissionsError[]; |
| 18 extern const char kNotInOptionalPermissionsError[]; | 19 extern const char kNotInOptionalPermissionsError[]; |
| 19 extern const char kNotWhitelistedError[]; | 20 extern const char kNotWhitelistedError[]; |
| 20 extern const char kUnknownPermissionError[]; | 21 extern const char kUnknownPermissionError[]; |
| 22 extern const char kInvalidOrigin[]; |
| 21 | 23 |
| 22 // Event names. | 24 // Event names. |
| 23 extern const char kOnAdded[]; | 25 extern const char kOnAdded[]; |
| 24 extern const char kOnRemoved[]; | 26 extern const char kOnRemoved[]; |
| 25 | 27 |
| 26 }; // namespace extension_permissions_module_constants | 28 }; // namespace extension_permissions_module_constants |
| 27 | 29 |
| 28 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ | 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ |
| OLD | NEW |