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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 kDeclarativeWebRequest, | 71 kDeclarativeWebRequest, |
72 kFileSystemDirectory, | 72 kFileSystemDirectory, |
73 kFileSystemWriteDirectory, | 73 kFileSystemWriteDirectory, |
74 kSignedInDevices, | 74 kSignedInDevices, |
75 kWallpaper, | 75 kWallpaper, |
76 kNetworkState, | 76 kNetworkState, |
77 kHomepage, | 77 kHomepage, |
78 kSearchProvider, | 78 kSearchProvider, |
79 kStartupPages, | 79 kStartupPages, |
80 kMediaGalleriesAllGalleriesDelete, | 80 kMediaGalleriesAllGalleriesDelete, |
| 81 kScreenlockPrivate, |
81 kEnumBoundary, | 82 kEnumBoundary, |
82 }; | 83 }; |
83 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 84 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
84 kNone_not_greater_than_kUnknown); | 85 kNone_not_greater_than_kUnknown); |
85 | 86 |
86 // Creates the corresponding permission message. | 87 // Creates the corresponding permission message. |
87 PermissionMessage(ID id, const string16& message); | 88 PermissionMessage(ID id, const string16& message); |
88 PermissionMessage(ID id, const string16& message, const string16& details); | 89 PermissionMessage(ID id, const string16& message, const string16& details); |
89 ~PermissionMessage(); | 90 ~PermissionMessage(); |
90 | 91 |
(...skipping 23 matching lines...) Expand all Loading... |
114 ID id_; | 115 ID id_; |
115 string16 message_; | 116 string16 message_; |
116 string16 details_; | 117 string16 details_; |
117 }; | 118 }; |
118 | 119 |
119 typedef std::vector<PermissionMessage> PermissionMessages; | 120 typedef std::vector<PermissionMessage> PermissionMessages; |
120 | 121 |
121 } // namespace extensions | 122 } // namespace extensions |
122 | 123 |
123 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 124 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
OLD | NEW |