| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 kOverrideBookmarksUI, | 83 kOverrideBookmarksUI, |
| 84 kAutomation, | 84 kAutomation, |
| 85 kAccessibilityFeaturesModify, | 85 kAccessibilityFeaturesModify, |
| 86 kAccessibilityFeaturesRead, | 86 kAccessibilityFeaturesRead, |
| 87 kBluetoothPrivate, | 87 kBluetoothPrivate, |
| 88 kIdentityEmail, | 88 kIdentityEmail, |
| 89 kExperienceSamplingPrivate, | 89 kExperienceSamplingPrivate, |
| 90 kCopresence, | 90 kCopresence, |
| 91 kTopSites, | 91 kTopSites, |
| 92 kU2fDevices, | 92 kU2fDevices, |
| 93 kDocumentScan, |
| 94 // Last entry: Add new entries above and ensure to update the |
| 95 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. |
| 93 kEnumBoundary, | 96 kEnumBoundary, |
| 94 }; | 97 }; |
| 95 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 98 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
| 96 kNone_not_greater_than_kUnknown); | 99 kNone_not_greater_than_kUnknown); |
| 97 | 100 |
| 98 // Creates the corresponding permission message. | 101 // Creates the corresponding permission message. |
| 99 PermissionMessage(ID id, const base::string16& message); | 102 PermissionMessage(ID id, const base::string16& message); |
| 100 PermissionMessage(ID id, | 103 PermissionMessage(ID id, |
| 101 const base::string16& message, | 104 const base::string16& message, |
| 102 const base::string16& details); | 105 const base::string16& details); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 128 ID id_; | 131 ID id_; |
| 129 base::string16 message_; | 132 base::string16 message_; |
| 130 base::string16 details_; | 133 base::string16 details_; |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 typedef std::vector<PermissionMessage> PermissionMessages; | 136 typedef std::vector<PermissionMessage> PermissionMessages; |
| 134 | 137 |
| 135 } // namespace extensions | 138 } // namespace extensions |
| 136 | 139 |
| 137 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 140 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |