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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 kUsb, | 55 kUsb, |
56 kSystemIndicator, | 56 kSystemIndicator, |
57 kBluetoothDevice, | 57 kBluetoothDevice, |
58 kUsbDevice, | 58 kUsbDevice, |
59 kMediaGalleriesAllGalleriesWrite, | 59 kMediaGalleriesAllGalleriesWrite, |
60 kSystemInfoDisplay, | 60 kSystemInfoDisplay, |
61 kNativeMessaging, | 61 kNativeMessaging, |
62 kSyncFileSystem, | 62 kSyncFileSystem, |
63 kAudio, | 63 kAudio, |
64 kFavicon, | 64 kFavicon, |
| 65 kMusicManagerPrivate, |
65 kEnumBoundary, | 66 kEnumBoundary, |
66 }; | 67 }; |
67 | 68 |
68 // Creates the corresponding permission message for a list of hosts. This is | 69 // Creates the corresponding permission message for a list of hosts. This is |
69 // simply a convenience method around the constructor, since the messages | 70 // simply a convenience method around the constructor, since the messages |
70 // change depending on what hosts are present. | 71 // change depending on what hosts are present. |
71 static PermissionMessage CreateFromHostList( | 72 static PermissionMessage CreateFromHostList( |
72 const std::set<std::string>& hosts); | 73 const std::set<std::string>& hosts); |
73 | 74 |
74 // Creates the corresponding permission message. | 75 // Creates the corresponding permission message. |
(...skipping 16 matching lines...) Expand all Loading... |
91 private: | 92 private: |
92 ID id_; | 93 ID id_; |
93 string16 message_; | 94 string16 message_; |
94 }; | 95 }; |
95 | 96 |
96 typedef std::vector<PermissionMessage> PermissionMessages; | 97 typedef std::vector<PermissionMessage> PermissionMessages; |
97 | 98 |
98 } // namespace extensions | 99 } // namespace extensions |
99 | 100 |
100 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 101 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
OLD | NEW |