| 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 29 matching lines...) Expand all Loading... |
| 40 kTtsEngine, | 40 kTtsEngine, |
| 41 kContentSettings, | 41 kContentSettings, |
| 42 kAllPageContent, | 42 kAllPageContent, |
| 43 kPrivacy, | 43 kPrivacy, |
| 44 kManagedMode, | 44 kManagedMode, |
| 45 kInput, | 45 kInput, |
| 46 kAudioCapture, | 46 kAudioCapture, |
| 47 kVideoCapture, | 47 kVideoCapture, |
| 48 kDownloads, | 48 kDownloads, |
| 49 kFileSystemWrite, | 49 kFileSystemWrite, |
| 50 kMediaGalleriesAccessEverything, |
| 50 kEnumBoundary | 51 kEnumBoundary |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 // Creates the corresponding permission message for a list of hosts. This is | 54 // Creates the corresponding permission message for a list of hosts. This is |
| 54 // simply a convenience method around the constructor, since the messages | 55 // simply a convenience method around the constructor, since the messages |
| 55 // change depending on what hosts are present. | 56 // change depending on what hosts are present. |
| 56 static PermissionMessage CreateFromHostList( | 57 static PermissionMessage CreateFromHostList( |
| 57 const std::set<std::string>& hosts); | 58 const std::set<std::string>& hosts); |
| 58 | 59 |
| 59 // Creates the corresponding permission message. | 60 // Creates the corresponding permission message. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 76 private: | 77 private: |
| 77 ID id_; | 78 ID id_; |
| 78 string16 message_; | 79 string16 message_; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 typedef std::vector<PermissionMessage> PermissionMessages; | 82 typedef std::vector<PermissionMessage> PermissionMessages; |
| 82 | 83 |
| 83 } // namespace extensions | 84 } // namespace extensions |
| 84 | 85 |
| 85 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 86 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |