OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" | 5 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
6 | 6 |
7 #include "chrome/common/extensions/permissions/bluetooth_permission.h" | 7 #include "chrome/common/extensions/permissions/bluetooth_permission.h" |
8 #include "chrome/common/extensions/permissions/media_galleries_permission.h" | 8 #include "chrome/common/extensions/permissions/media_galleries_permission.h" |
9 #include "chrome/common/extensions/permissions/socket_permission.h" | 9 #include "chrome/common/extensions/permissions/socket_permission.h" |
10 #include "chrome/common/extensions/permissions/usb_device_permission.h" | 10 #include "chrome/common/extensions/permissions/usb_device_permission.h" |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 IDS_EXTENSION_PROMPT_WARNING_SERIAL, | 274 IDS_EXTENSION_PROMPT_WARNING_SERIAL, |
275 PermissionMessage::kSerial }, | 275 PermissionMessage::kSerial }, |
276 // Because warning messages for the "socket" permission vary based on the | 276 // Because warning messages for the "socket" permission vary based on the |
277 // permissions parameters, no message ID or message text is specified here. | 277 // permissions parameters, no message ID or message text is specified here. |
278 // The message ID and text used will be determined at run-time in the | 278 // The message ID and text used will be determined at run-time in the |
279 // |SocketPermission| class. | 279 // |SocketPermission| class. |
280 { APIPermission::kSocket, "socket", | 280 { APIPermission::kSocket, "socket", |
281 APIPermissionInfo::kFlagCannotBeOptional, 0, | 281 APIPermissionInfo::kFlagCannotBeOptional, 0, |
282 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> }, | 282 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> }, |
283 { APIPermission::kSocketsUdp, "sockets.udp" }, | 283 { APIPermission::kSocketsUdp, "sockets.udp" }, |
| 284 { APIPermission::kAppCurrentWindowInternal, "app.currentWindowInternal" }, |
| 285 { APIPermission::kAppRuntime, "app.runtime" }, |
| 286 { APIPermission::kAppWindow, "app.window" }, |
284 { APIPermission::kAudioCapture, "audioCapture", | 287 { APIPermission::kAudioCapture, "audioCapture", |
285 APIPermissionInfo::kFlagNone, | 288 APIPermissionInfo::kFlagNone, |
286 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, | 289 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, |
287 PermissionMessage::kAudioCapture }, | 290 PermissionMessage::kAudioCapture }, |
288 { APIPermission::kVideoCapture, "videoCapture", | 291 { APIPermission::kVideoCapture, "videoCapture", |
289 APIPermissionInfo::kFlagNone, | 292 APIPermissionInfo::kFlagNone, |
290 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, | 293 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, |
291 PermissionMessage::kVideoCapture }, | 294 PermissionMessage::kVideoCapture }, |
292 // The permission string for "fileSystem" is only shown when "write" or | 295 // The permission string for "fileSystem" is only shown when "write" or |
293 // "directory" is present. Read-only access is only granted after the user | 296 // "directory" is present. Read-only access is only granted after the user |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // Register aliases. | 367 // Register aliases. |
365 std::vector<PermissionsProvider::AliasInfo> aliases; | 368 std::vector<PermissionsProvider::AliasInfo> aliases; |
366 aliases.push_back(PermissionsProvider::AliasInfo( | 369 aliases.push_back(PermissionsProvider::AliasInfo( |
367 "unlimitedStorage", kOldUnlimitedStoragePermission)); | 370 "unlimitedStorage", kOldUnlimitedStoragePermission)); |
368 aliases.push_back(PermissionsProvider::AliasInfo( | 371 aliases.push_back(PermissionsProvider::AliasInfo( |
369 "tabs", kWindowsPermission)); | 372 "tabs", kWindowsPermission)); |
370 return aliases; | 373 return aliases; |
371 } | 374 } |
372 | 375 |
373 } // namespace extensions | 376 } // namespace extensions |
OLD | NEW |