| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 kMusicManagerPrivate, | 66 kMusicManagerPrivate, |
| 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 kNetworkState, |
| 76 kEnumBoundary, | 77 kEnumBoundary, |
| 77 }; | 78 }; |
| 78 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, | 79 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, |
| 79 kNone_not_greater_than_kUnknown); | 80 kNone_not_greater_than_kUnknown); |
| 80 | 81 |
| 81 // Creates the corresponding permission message for a list of hosts. This is | 82 // Creates the corresponding permission message for a list of hosts. This is |
| 82 // simply a convenience method around the constructor, since the messages | 83 // simply a convenience method around the constructor, since the messages |
| 83 // change depending on what hosts are present. | 84 // change depending on what hosts are present. |
| 84 static PermissionMessage CreateFromHostList( | 85 static PermissionMessage CreateFromHostList( |
| 85 const std::set<std::string>& hosts); | 86 const std::set<std::string>& hosts); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 115 ID id_; | 116 ID id_; |
| 116 string16 message_; | 117 string16 message_; |
| 117 string16 details_; | 118 string16 details_; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 typedef std::vector<PermissionMessage> PermissionMessages; | 121 typedef std::vector<PermissionMessage> PermissionMessages; |
| 121 | 122 |
| 122 } // namespace extensions | 123 } // namespace extensions |
| 123 | 124 |
| 124 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 125 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |