| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_PERMISSIONS_API_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
| 6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 kShouldWarnAllHosts, | 235 kShouldWarnAllHosts, |
| 236 kSocketAnyHost, | 236 kSocketAnyHost, |
| 237 kSocketDomainHosts, | 237 kSocketDomainHosts, |
| 238 kSocketSpecificHosts, | 238 kSocketSpecificHosts, |
| 239 kUsbDeviceList, | 239 kUsbDeviceList, |
| 240 kUsbDeviceUnknownProduct, | 240 kUsbDeviceUnknownProduct, |
| 241 kUsbDeviceUnknownVendor, | 241 kUsbDeviceUnknownVendor, |
| 242 kUsersPrivate, | 242 kUsersPrivate, |
| 243 kPasswordsPrivate, | 243 kPasswordsPrivate, |
| 244 kLanguageSettingsPrivate, | 244 kLanguageSettingsPrivate, |
| 245 kEnterpriseDeviceAttributes, |
| 245 // Last entry: Add new entries above and ensure to update the | 246 // Last entry: Add new entries above and ensure to update the |
| 246 // "ExtensionPermission3" enum in tools/metrics/histograms/histograms.xml | 247 // "ExtensionPermission3" enum in tools/metrics/histograms/histograms.xml |
| 247 // (by running update_extension_permission.py). | 248 // (by running update_extension_permission.py). |
| 248 kEnumBoundary | 249 kEnumBoundary |
| 249 }; | 250 }; |
| 250 | 251 |
| 251 struct CheckParam { | 252 struct CheckParam { |
| 252 }; | 253 }; |
| 253 | 254 |
| 254 explicit APIPermission(const APIPermissionInfo* info); | 255 explicit APIPermission(const APIPermissionInfo* info); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 const char* const name_; | 455 const char* const name_; |
| 455 const int flags_; | 456 const int flags_; |
| 456 const int l10n_message_id_; | 457 const int l10n_message_id_; |
| 457 const PermissionMessage::ID message_id_; | 458 const PermissionMessage::ID message_id_; |
| 458 const APIPermissionConstructor api_permission_constructor_; | 459 const APIPermissionConstructor api_permission_constructor_; |
| 459 }; | 460 }; |
| 460 | 461 |
| 461 } // namespace extensions | 462 } // namespace extensions |
| 462 | 463 |
| 463 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 464 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
| OLD | NEW |