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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 kHomepage, | 78 kHomepage, |
79 kSearchProvider, | 79 kSearchProvider, |
80 kStartupPages, | 80 kStartupPages, |
81 kMediaGalleriesAllGalleriesDelete, | 81 kMediaGalleriesAllGalleriesDelete, |
82 kScreenlockPrivate, | 82 kScreenlockPrivate, |
83 kOverrideBookmarksUI, | 83 kOverrideBookmarksUI, |
84 kAutomation, | 84 kAutomation, |
85 kAccessibilityFeaturesModify, | 85 kAccessibilityFeaturesModify, |
86 kAccessibilityFeaturesRead, | 86 kAccessibilityFeaturesRead, |
87 kBluetoothPrivate, | 87 kBluetoothPrivate, |
88 kDocumentScan, | |
Alexei Svitkine (slow)
2014/05/20 20:50:42
Please also update histograms.xml and add also a c
Paul Stewart
2014/05/21 01:09:30
Done. It triggered a pre-submit warnings so pleas
| |
88 kEnumBoundary, | 89 kEnumBoundary, |
89 }; | 90 }; |
90 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 91 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
91 kNone_not_greater_than_kUnknown); | 92 kNone_not_greater_than_kUnknown); |
92 | 93 |
93 // Creates the corresponding permission message. | 94 // Creates the corresponding permission message. |
94 PermissionMessage(ID id, const base::string16& message); | 95 PermissionMessage(ID id, const base::string16& message); |
95 PermissionMessage(ID id, | 96 PermissionMessage(ID id, |
96 const base::string16& message, | 97 const base::string16& message, |
97 const base::string16& details); | 98 const base::string16& details); |
(...skipping 25 matching lines...) Expand all Loading... | |
123 ID id_; | 124 ID id_; |
124 base::string16 message_; | 125 base::string16 message_; |
125 base::string16 details_; | 126 base::string16 details_; |
126 }; | 127 }; |
127 | 128 |
128 typedef std::vector<PermissionMessage> PermissionMessages; | 129 typedef std::vector<PermissionMessage> PermissionMessages; |
129 | 130 |
130 } // namespace extensions | 131 } // namespace extensions |
131 | 132 |
132 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 133 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
OLD | NEW |