| 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_API_PERMISSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class APIPermission { | 32 class APIPermission { |
| 33 public: | 33 public: |
| 34 enum ID { | 34 enum ID { |
| 35 // Error codes. | 35 // Error codes. |
| 36 kInvalid = -2, | 36 kInvalid = -2, |
| 37 kUnknown = -1, | 37 kUnknown = -1, |
| 38 | 38 |
| 39 // Real permissions. | 39 // Real permissions. |
| 40 kActiveTab, | 40 kActiveTab, |
| 41 kAlarms, | 41 kAlarms, |
| 42 kAppCurrentWindowInternal, |
| 42 kAppNotifications, | 43 kAppNotifications, |
| 43 kAppRuntime, | 44 kAppRuntime, |
| 44 kAppWindow, | 45 kAppWindow, |
| 45 kAudioCapture, | 46 kAudioCapture, |
| 46 kBackground, | 47 kBackground, |
| 47 kBookmark, | 48 kBookmark, |
| 48 kBrowserTag, | 49 kBrowserTag, |
| 49 kBrowsingData, | 50 kBrowsingData, |
| 50 kChromeosInfoPrivate, | 51 kChromeosInfoPrivate, |
| 51 kClipboardRead, | 52 kClipboardRead, |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 const char* const name_; | 246 const char* const name_; |
| 246 const int flags_; | 247 const int flags_; |
| 247 const int l10n_message_id_; | 248 const int l10n_message_id_; |
| 248 const PermissionMessage::ID message_id_; | 249 const PermissionMessage::ID message_id_; |
| 249 const APIPermissionConstructor api_permission_constructor_; | 250 const APIPermissionConstructor api_permission_constructor_; |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 } // namespace extensions | 253 } // namespace extensions |
| 253 | 254 |
| 254 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 255 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| OLD | NEW |