| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 kCopresence, | 90 kCopresence, |
| 91 kTopSites, | 91 kTopSites, |
| 92 kU2fDevices, | 92 kU2fDevices, |
| 93 kVpnProvider, | 93 kVpnProvider, |
| 94 kDocumentScan, | 94 kDocumentScan, |
| 95 kHosts1ReadOnly, | 95 kHosts1ReadOnly, |
| 96 kHosts2ReadOnly, | 96 kHosts2ReadOnly, |
| 97 kHosts3ReadOnly, | 97 kHosts3ReadOnly, |
| 98 kHosts4OrMoreReadOnly, | 98 kHosts4OrMoreReadOnly, |
| 99 kHostsAllReadOnly, | 99 kHostsAllReadOnly, |
| 100 kInterceptAllKeys, |
| 100 // Last entry: Add new entries above and ensure to update the | 101 // Last entry: Add new entries above and ensure to update the |
| 101 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. | 102 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. |
| 102 kEnumBoundary, | 103 kEnumBoundary, |
| 103 }; | 104 }; |
| 104 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 105 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
| 105 kNone_not_greater_than_kUnknown); | 106 kNone_not_greater_than_kUnknown); |
| 106 | 107 |
| 107 // Creates the corresponding permission message. | 108 // Creates the corresponding permission message. |
| 108 PermissionMessage(ID id, const base::string16& message); | 109 PermissionMessage(ID id, const base::string16& message); |
| 109 PermissionMessage(ID id, | 110 PermissionMessage(ID id, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 137 ID id_; | 138 ID id_; |
| 138 base::string16 message_; | 139 base::string16 message_; |
| 139 base::string16 details_; | 140 base::string16 details_; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 typedef std::vector<PermissionMessage> PermissionMessages; | 143 typedef std::vector<PermissionMessage> PermissionMessages; |
| 143 | 144 |
| 144 } // namespace extensions | 145 } // namespace extensions |
| 145 | 146 |
| 146 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 147 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |