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/api_permission.h" | 7 #include "chrome/common/extensions/permissions/api_permission.h" |
8 #include "chrome/common/extensions/permissions/api_permission_set.h" | 8 #include "chrome/common/extensions/permissions/api_permission_set.h" |
9 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h" | 9 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h" |
10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" | 10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 PermissionMessage::kAudioCapture }, | 219 PermissionMessage::kAudioCapture }, |
220 { APIPermission::kVideoCapture, "videoCapture", | 220 { APIPermission::kVideoCapture, "videoCapture", |
221 APIPermissionInfo::kFlagNone, | 221 APIPermissionInfo::kFlagNone, |
222 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, | 222 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, |
223 PermissionMessage::kVideoCapture }, | 223 PermissionMessage::kVideoCapture }, |
224 // The permission string for "fileSystem" is only shown when "write" is | 224 // The permission string for "fileSystem" is only shown when "write" is |
225 // present. Read-only access is only granted after the user has been shown | 225 // present. Read-only access is only granted after the user has been shown |
226 // a file chooser dialog and selected a file. Selecting the file is | 226 // a file chooser dialog and selected a file. Selecting the file is |
227 // considered consent to read it. | 227 // considered consent to read it. |
228 { APIPermission::kFileSystem, "fileSystem" }, | 228 { APIPermission::kFileSystem, "fileSystem" }, |
| 229 { APIPermission::kFileSystemRetainFiles, "fileSystem.retainFiles" }, |
229 { APIPermission::kFileSystemWrite, "fileSystem.write", | 230 { APIPermission::kFileSystemWrite, "fileSystem.write", |
230 APIPermissionInfo::kFlagNone, | 231 APIPermissionInfo::kFlagNone, |
231 IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_WRITE, | 232 IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_WRITE, |
232 PermissionMessage::kFileSystemWrite }, | 233 PermissionMessage::kFileSystemWrite }, |
233 // Because warning messages for the "mediaGalleries" permission vary based | 234 // Because warning messages for the "mediaGalleries" permission vary based |
234 // on the permissions parameters, no message ID or message text is | 235 // on the permissions parameters, no message ID or message text is |
235 // specified here. | 236 // specified here. |
236 // The message ID and text used will be determined at run-time in the | 237 // The message ID and text used will be determined at run-time in the |
237 // |MediaGalleriesPermission| class. | 238 // |MediaGalleriesPermission| class. |
238 { APIPermission::kMediaGalleries, "mediaGalleries", | 239 { APIPermission::kMediaGalleries, "mediaGalleries", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // Register aliases. | 282 // Register aliases. |
282 std::vector<PermissionsInfo::AliasInfo> aliases; | 283 std::vector<PermissionsInfo::AliasInfo> aliases; |
283 aliases.push_back(PermissionsInfo::AliasInfo( | 284 aliases.push_back(PermissionsInfo::AliasInfo( |
284 "unlimitedStorage", kOldUnlimitedStoragePermission)); | 285 "unlimitedStorage", kOldUnlimitedStoragePermission)); |
285 aliases.push_back(PermissionsInfo::AliasInfo( | 286 aliases.push_back(PermissionsInfo::AliasInfo( |
286 "tabs", kWindowsPermission)); | 287 "tabs", kWindowsPermission)); |
287 return aliases; | 288 return aliases; |
288 } | 289 } |
289 | 290 |
290 } // namespace extensions | 291 } // namespace extensions |
OLD | NEW |