| 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 22 matching lines...) Expand all Loading... |
| 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 kAppNotifications, | 42 kAppNotifications, |
| 43 kAppCurrentWindowInternal, |
| 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, |
| 52 kClipboardWrite, | 53 kClipboardWrite, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 friend class base::RefCounted<APIPermissionDetail>; | 257 friend class base::RefCounted<APIPermissionDetail>; |
| 257 virtual ~APIPermissionDetail(); | 258 virtual ~APIPermissionDetail(); |
| 258 | 259 |
| 259 private: | 260 private: |
| 260 const APIPermission* const permission_; | 261 const APIPermission* const permission_; |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 } // namespace extensions | 264 } // namespace extensions |
| 264 | 265 |
| 265 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 266 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| OLD | NEW |