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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 kSearchEnginesPrivate, | 108 kSearchEnginesPrivate, |
109 kAutofillPrivate, | 109 kAutofillPrivate, |
110 // Last entry: Add new entries above and ensure to update the | 110 // Last entry: Add new entries above and ensure to update the |
111 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. | 111 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml |
| 112 // (by running update_extension_permission.py). |
112 kEnumBoundary, | 113 kEnumBoundary, |
113 }; | 114 }; |
114 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, | 115 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, |
115 "kNone should not greater than kUnknown"); | 116 "kNone should not greater than kUnknown"); |
116 | 117 |
117 // Creates the corresponding permission message. | 118 // Creates the corresponding permission message. |
118 PermissionMessage(ID id, const base::string16& message); | 119 PermissionMessage(ID id, const base::string16& message); |
119 PermissionMessage(ID id, | 120 PermissionMessage(ID id, |
120 const base::string16& message, | 121 const base::string16& message, |
121 const base::string16& details); | 122 const base::string16& details); |
(...skipping 26 matching lines...) Expand all Loading... |
148 base::string16 message_; | 149 base::string16 message_; |
149 base::string16 details_; | 150 base::string16 details_; |
150 }; | 151 }; |
151 | 152 |
152 typedef std::vector<PermissionMessage> PermissionMessages; | 153 typedef std::vector<PermissionMessage> PermissionMessages; |
153 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; | 154 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; |
154 | 155 |
155 } // namespace extensions | 156 } // namespace extensions |
156 | 157 |
157 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 158 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
OLD | NEW |