| 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 30 matching lines...) Expand all Loading... |
| 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 kMediaGalleriesAllGalleries, | 50 kMediaGalleriesAllGalleries, |
| 51 kWindowManager, |
| 51 kEnumBoundary | 52 kEnumBoundary |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 // Creates the corresponding permission message for a list of hosts. This is | 55 // Creates the corresponding permission message for a list of hosts. This is |
| 55 // simply a convenience method around the constructor, since the messages | 56 // simply a convenience method around the constructor, since the messages |
| 56 // change depending on what hosts are present. | 57 // change depending on what hosts are present. |
| 57 static PermissionMessage CreateFromHostList( | 58 static PermissionMessage CreateFromHostList( |
| 58 const std::set<std::string>& hosts); | 59 const std::set<std::string>& hosts); |
| 59 | 60 |
| 60 // Creates the corresponding permission message. | 61 // Creates the corresponding permission message. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 private: | 78 private: |
| 78 ID id_; | 79 ID id_; |
| 79 string16 message_; | 80 string16 message_; |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 typedef std::vector<PermissionMessage> PermissionMessages; | 83 typedef std::vector<PermissionMessage> PermissionMessages; |
| 83 | 84 |
| 84 } // namespace extensions | 85 } // namespace extensions |
| 85 | 86 |
| 86 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ | 87 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |