| 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_PERMISSION_MESSAGE_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 kOverrideBookmarksUI, | 85 kOverrideBookmarksUI, |
| 86 kAutomation, | 86 kAutomation, |
| 87 kAccessibilityFeaturesModify, | 87 kAccessibilityFeaturesModify, |
| 88 kAccessibilityFeaturesRead, | 88 kAccessibilityFeaturesRead, |
| 89 kBluetoothPrivate, | 89 kBluetoothPrivate, |
| 90 kIdentityEmail, | 90 kIdentityEmail, |
| 91 kExperienceSamplingPrivate, | 91 kExperienceSamplingPrivate, |
| 92 kCopresence, | 92 kCopresence, |
| 93 kTopSites, | 93 kTopSites, |
| 94 kU2fDevices, | 94 kU2fDevices, |
| 95 kDocumentScan, |
| 96 kNetworkingConfig, |
| 97 kPlatformKeys, |
| 98 kMDns, |
| 95 kVpnProvider, | 99 kVpnProvider, |
| 96 kDocumentScan, | |
| 97 kHosts1ReadOnly, | 100 kHosts1ReadOnly, |
| 98 kHosts2ReadOnly, | 101 kHosts2ReadOnly, |
| 99 kHosts3ReadOnly, | 102 kHosts3ReadOnly, |
| 100 kHosts4OrMoreReadOnly, | 103 kHosts4OrMoreReadOnly, |
| 101 kHostsAllReadOnly, | 104 kHostsAllReadOnly, |
| 102 kInterceptAllKeys, | 105 kInterceptAllKeys, |
| 103 kNetworkingConfig, | |
| 104 kPlatformKeys, | |
| 105 kMDns, | |
| 106 kSettingsPrivate, | 106 kSettingsPrivate, |
| 107 // Last entry: Add new entries above and ensure to update the | 107 // Last entry: Add new entries above and ensure to update the |
| 108 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. | 108 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. |
| 109 kEnumBoundary, | 109 kEnumBoundary, |
| 110 }; | 110 }; |
| 111 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, | 111 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, |
| 112 "kNone should not greater than kUnknown"); | 112 "kNone should not greater than kUnknown"); |
| 113 | 113 |
| 114 // Creates the corresponding permission message. | 114 // Creates the corresponding permission message. |
| 115 PermissionMessage(ID id, const base::string16& message); | 115 PermissionMessage(ID id, const base::string16& message); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 145 base::string16 message_; | 145 base::string16 message_; |
| 146 base::string16 details_; | 146 base::string16 details_; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 typedef std::vector<PermissionMessage> PermissionMessages; | 149 typedef std::vector<PermissionMessage> PermissionMessages; |
| 150 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; | 150 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; |
| 151 | 151 |
| 152 } // namespace extensions | 152 } // namespace extensions |
| 153 | 153 |
| 154 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 154 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |