| 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 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 enum ID { | 35 enum ID { |
| 36 // Error codes. | 36 // Error codes. |
| 37 kInvalid = -2, | 37 kInvalid = -2, |
| 38 kUnknown = -1, | 38 kUnknown = -1, |
| 39 | 39 |
| 40 // Real permissions. | 40 // Real permissions. |
| 41 kActiveTab, | 41 kActiveTab, |
| 42 kAlarms, | 42 kAlarms, |
| 43 kAppCurrentWindowInternal, | 43 kAppCurrentWindowInternal, |
| 44 kAppNotifications, | |
| 45 kAppRuntime, | 44 kAppRuntime, |
| 46 kAppWindow, | 45 kAppWindow, |
| 47 kAudioCapture, | 46 kAudioCapture, |
| 48 kAutoTestPrivate, | 47 kAutoTestPrivate, |
| 49 kBackground, | 48 kBackground, |
| 50 kBluetooth, | 49 kBluetooth, |
| 51 kBluetoothDevice, | 50 kBluetoothDevice, |
| 52 kBookmark, | 51 kBookmark, |
| 53 kBookmarkManagerPrivate, | 52 kBookmarkManagerPrivate, |
| 54 kBrowsingData, | 53 kBrowsingData, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 const char* const name_; | 291 const char* const name_; |
| 293 const int flags_; | 292 const int flags_; |
| 294 const int l10n_message_id_; | 293 const int l10n_message_id_; |
| 295 const PermissionMessage::ID message_id_; | 294 const PermissionMessage::ID message_id_; |
| 296 const APIPermissionConstructor api_permission_constructor_; | 295 const APIPermissionConstructor api_permission_constructor_; |
| 297 }; | 296 }; |
| 298 | 297 |
| 299 } // namespace extensions | 298 } // namespace extensions |
| 300 | 299 |
| 301 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 300 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| OLD | NEW |