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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 kVpnProvider, | 99 kVpnProvider, |
100 kHosts1ReadOnly, | 100 kHosts1ReadOnly, |
101 kHosts2ReadOnly, | 101 kHosts2ReadOnly, |
102 kHosts3ReadOnly, | 102 kHosts3ReadOnly, |
103 kHosts4OrMoreReadOnly, | 103 kHosts4OrMoreReadOnly, |
104 kHostsAllReadOnly, | 104 kHostsAllReadOnly, |
105 kInterceptAllKeys, | 105 kInterceptAllKeys, |
106 kSettingsPrivate, | 106 kSettingsPrivate, |
107 kPrinterProvider, | 107 kPrinterProvider, |
108 // Last entry: Add new entries above and ensure to update the | 108 // Last entry: Add new entries above and ensure to update the |
109 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. | 109 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml |
| 110 // (by running update_extension_functions.py). |
110 kEnumBoundary, | 111 kEnumBoundary, |
111 }; | 112 }; |
112 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, | 113 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, |
113 "kNone should not greater than kUnknown"); | 114 "kNone should not greater than kUnknown"); |
114 | 115 |
115 // Creates the corresponding permission message. | 116 // Creates the corresponding permission message. |
116 PermissionMessage(ID id, const base::string16& message); | 117 PermissionMessage(ID id, const base::string16& message); |
117 PermissionMessage(ID id, | 118 PermissionMessage(ID id, |
118 const base::string16& message, | 119 const base::string16& message, |
119 const base::string16& details); | 120 const base::string16& details); |
(...skipping 26 matching lines...) Expand all Loading... |
146 base::string16 message_; | 147 base::string16 message_; |
147 base::string16 details_; | 148 base::string16 details_; |
148 }; | 149 }; |
149 | 150 |
150 typedef std::vector<PermissionMessage> PermissionMessages; | 151 typedef std::vector<PermissionMessage> PermissionMessages; |
151 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; | 152 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; |
152 | 153 |
153 } // namespace extensions | 154 } // namespace extensions |
154 | 155 |
155 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 156 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
OLD | NEW |