Chromium Code Reviews| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 kRtcPrivate, | 105 kRtcPrivate, |
| 106 kScreensaver, | 106 kScreensaver, |
| 107 kSerial, | 107 kSerial, |
| 108 kSessionRestore, | 108 kSessionRestore, |
| 109 kSocket, | 109 kSocket, |
| 110 kStorage, | 110 kStorage, |
| 111 kStreamsPrivate, | 111 kStreamsPrivate, |
| 112 kSyncFileSystem, | 112 kSyncFileSystem, |
| 113 kSystemPrivate, | 113 kSystemPrivate, |
| 114 kSystemIndicator, | 114 kSystemIndicator, |
| 115 kSystemInfoDisplay, | 115 kSystemInfoDisplay, |
|
Tim Song
2013/05/29 18:19:24
There is a kSystemInfoDisplay permission here. Wou
Hongbo Min
2013/05/30 11:51:12
Agree.
Tim Song
2013/05/31 01:08:35
With further thought, we should keep these permiss
| |
| 116 kTab, | 116 kTab, |
| 117 kTabCapture, | 117 kTabCapture, |
| 118 kTerminalPrivate, | 118 kTerminalPrivate, |
| 119 kTopSites, | 119 kTopSites, |
| 120 kTts, | 120 kTts, |
| 121 kTtsEngine, | 121 kTtsEngine, |
| 122 kUnlimitedStorage, | 122 kUnlimitedStorage, |
| 123 kUsb, | 123 kUsb, |
| 124 kUsbDevice, | 124 kUsbDevice, |
| 125 kVideoCapture, | 125 kVideoCapture, |
| 126 kWallpaperPrivate, | 126 kWallpaperPrivate, |
| 127 kWebNavigation, | 127 kWebNavigation, |
| 128 kWebRequest, | 128 kWebRequest, |
| 129 kWebRequestBlocking, | 129 kWebRequestBlocking, |
| 130 kWebRequestInternal, | 130 kWebRequestInternal, |
| 131 kWebSocketProxyPrivate, | 131 kWebSocketProxyPrivate, |
| 132 kWebstorePrivate, | 132 kWebstorePrivate, |
| 133 kWebView, | 133 kWebView, |
| 134 kSystemInfoCpu, | |
| 134 kEnumBoundary | 135 kEnumBoundary |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 struct CheckParam { | 138 struct CheckParam { |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 explicit APIPermission(const APIPermissionInfo* info); | 141 explicit APIPermission(const APIPermissionInfo* info); |
| 141 | 142 |
| 142 virtual ~APIPermission(); | 143 virtual ~APIPermission(); |
| 143 | 144 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 const char* const name_; | 288 const char* const name_; |
| 288 const int flags_; | 289 const int flags_; |
| 289 const int l10n_message_id_; | 290 const int l10n_message_id_; |
| 290 const PermissionMessage::ID message_id_; | 291 const PermissionMessage::ID message_id_; |
| 291 const APIPermissionConstructor api_permission_constructor_; | 292 const APIPermissionConstructor api_permission_constructor_; |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace extensions | 295 } // namespace extensions |
| 295 | 296 |
| 296 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 297 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
| OLD | NEW |