| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 kWebConnectable, | 67 kWebConnectable, |
| 68 kActivityLogPrivate, | 68 kActivityLogPrivate, |
| 69 kBluetoothDevices, | 69 kBluetoothDevices, |
| 70 kDownloadsOpen, | 70 kDownloadsOpen, |
| 71 kNetworkingPrivate, | 71 kNetworkingPrivate, |
| 72 kDeclarativeWebRequest, | 72 kDeclarativeWebRequest, |
| 73 kFileSystemDirectory, | 73 kFileSystemDirectory, |
| 74 kFileSystemWriteDirectory, | 74 kFileSystemWriteDirectory, |
| 75 kSignedInDevices, | 75 kSignedInDevices, |
| 76 kWallpaper, | 76 kWallpaper, |
| 77 kNetworkState, |
| 77 kEnumBoundary, | 78 kEnumBoundary, |
| 78 }; | 79 }; |
| 79 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 80 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
| 80 kNone_not_greater_than_kUnknown); | 81 kNone_not_greater_than_kUnknown); |
| 81 | 82 |
| 82 // Creates the corresponding permission message for a list of hosts. This is | 83 // Creates the corresponding permission message for a list of hosts. This is |
| 83 // simply a convenience method around the constructor, since the messages | 84 // simply a convenience method around the constructor, since the messages |
| 84 // change depending on what hosts are present. | 85 // change depending on what hosts are present. |
| 85 static PermissionMessage CreateFromHostList( | 86 static PermissionMessage CreateFromHostList( |
| 86 const std::set<std::string>& hosts); | 87 const std::set<std::string>& hosts); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 116 ID id_; | 117 ID id_; |
| 117 string16 message_; | 118 string16 message_; |
| 118 string16 details_; | 119 string16 details_; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 typedef std::vector<PermissionMessage> PermissionMessages; | 122 typedef std::vector<PermissionMessage> PermissionMessages; |
| 122 | 123 |
| 123 } // namespace extensions | 124 } // namespace extensions |
| 124 | 125 |
| 125 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 126 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |