| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 // When prompting the user to install or approve permissions, we display | 16 // When prompting the user to install or approve permissions, we display |
| 17 // messages describing the effects of the permissions rather than listing the | 17 // messages describing the effects of the permissions rather than listing the |
| 18 // permissions themselves. Each PermissionMessage represents one of the | 18 // permissions themselves. Each PermissionMessage represents one of the |
| 19 // messages shown to the user. | 19 // messages shown to the user. |
| 20 class PermissionMessage { | 20 class PermissionMessage { |
| 21 public: | 21 public: |
| 22 // Do not reorder this enumeration. If you need to add a new enum, add it just | 22 // Do not reorder this enumeration. If you need to add a new enum, add it just |
| 23 // prior to kEnumBoundary. | 23 // prior to kEnumBoundary. |
| 24 enum ID { | 24 enum ID { |
| 25 kUnknown, | 25 kUnknown, |
| 26 kNone, | 26 kNone, |
| 27 kBookmarks, | 27 kBookmarks, |
| 28 kGeolocation, | 28 kGeolocation, |
| 29 kBrowsingHistory, | 29 kBrowsingHistoryWrite, |
| 30 kTabs, | 30 kBrowsingHistoryRead, |
| 31 kManagement, | 31 kManagement, |
| 32 kDebugger, | 32 kDebugger, |
| 33 kDesktopCapture, | 33 kDesktopCapture, |
| 34 kHid, | 34 kHid, |
| 35 kHosts1, | 35 kHosts1, |
| 36 kHosts2, | 36 kHosts2, |
| 37 kHosts3, | 37 kHosts3, |
| 38 kHosts4OrMore, | 38 kHosts4OrMore, |
| 39 kHostsAll, | 39 kHostsAll, |
| 40 kFullAccess, | 40 kFullAccess, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 ID id_; | 123 ID id_; |
| 124 base::string16 message_; | 124 base::string16 message_; |
| 125 base::string16 details_; | 125 base::string16 details_; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 typedef std::vector<PermissionMessage> PermissionMessages; | 128 typedef std::vector<PermissionMessage> PermissionMessages; |
| 129 | 129 |
| 130 } // namespace extensions | 130 } // namespace extensions |
| 131 | 131 |
| 132 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ | 132 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ |
| OLD | NEW |