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 // There is one instance per permission per loaded extension. | 32 // There is one instance per permission per loaded extension. |
33 class APIPermission { | 33 class APIPermission { |
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 kAdView, |
42 kAlarms, | 43 kAlarms, |
43 kAppCurrentWindowInternal, | 44 kAppCurrentWindowInternal, |
44 kAppRuntime, | 45 kAppRuntime, |
45 kAppWindow, | 46 kAppWindow, |
46 kAudioCapture, | 47 kAudioCapture, |
47 kAutoTestPrivate, | 48 kAutoTestPrivate, |
48 kBackground, | 49 kBackground, |
49 kBluetooth, | 50 kBluetooth, |
50 kBluetoothDevice, | 51 kBluetoothDevice, |
51 kBookmark, | 52 kBookmark, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 const char* const name_; | 294 const char* const name_; |
294 const int flags_; | 295 const int flags_; |
295 const int l10n_message_id_; | 296 const int l10n_message_id_; |
296 const PermissionMessage::ID message_id_; | 297 const PermissionMessage::ID message_id_; |
297 const APIPermissionConstructor api_permission_constructor_; | 298 const APIPermissionConstructor api_permission_constructor_; |
298 }; | 299 }; |
299 | 300 |
300 } // namespace extensions | 301 } // namespace extensions |
301 | 302 |
302 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 303 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
OLD | NEW |