| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 { APIPermission::kIdentity, "identity" }, | 53 { APIPermission::kIdentity, "identity" }, |
| 54 { APIPermission::kExperimental, "experimental", | 54 { APIPermission::kExperimental, "experimental", |
| 55 APIPermissionInfo::kFlagCannotBeOptional }, | 55 APIPermissionInfo::kFlagCannotBeOptional }, |
| 56 // NOTE(kalman): this is provided by a manifest property but needs to | 56 // NOTE(kalman): this is provided by a manifest property but needs to |
| 57 // appear in the install permission dialogue, so we need a fake | 57 // appear in the install permission dialogue, so we need a fake |
| 58 // permission for it. See http://crbug.com/247857. | 58 // permission for it. See http://crbug.com/247857. |
| 59 { APIPermission::kWebConnectable, "webConnectable", | 59 { APIPermission::kWebConnectable, "webConnectable", |
| 60 APIPermissionInfo::kFlagCannotBeOptional, | 60 APIPermissionInfo::kFlagCannotBeOptional, |
| 61 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE, | 61 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE, |
| 62 PermissionMessage::kWebConnectable}, | 62 PermissionMessage::kWebConnectable}, |
| 63 { APIPermission::kExtfs, "extfs" }, |
| 63 { APIPermission::kGeolocation, "geolocation", | 64 { APIPermission::kGeolocation, "geolocation", |
| 64 APIPermissionInfo::kFlagCannotBeOptional, | 65 APIPermissionInfo::kFlagCannotBeOptional, |
| 65 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 66 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
| 66 PermissionMessage::kGeolocation }, | 67 PermissionMessage::kGeolocation }, |
| 67 { APIPermission::kNotification, "notifications" }, | 68 { APIPermission::kNotification, "notifications" }, |
| 68 { APIPermission::kScreensaver, "screensaver" }, | 69 { APIPermission::kScreensaver, "screensaver" }, |
| 69 { APIPermission::kUnlimitedStorage, "unlimitedStorage", | 70 { APIPermission::kUnlimitedStorage, "unlimitedStorage", |
| 70 APIPermissionInfo::kFlagCannotBeOptional }, | 71 APIPermissionInfo::kFlagCannotBeOptional }, |
| 71 | 72 |
| 72 // Register extension permissions. | 73 // Register extension permissions. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // Register aliases. | 303 // Register aliases. |
| 303 std::vector<PermissionsInfo::AliasInfo> aliases; | 304 std::vector<PermissionsInfo::AliasInfo> aliases; |
| 304 aliases.push_back(PermissionsInfo::AliasInfo( | 305 aliases.push_back(PermissionsInfo::AliasInfo( |
| 305 "unlimitedStorage", kOldUnlimitedStoragePermission)); | 306 "unlimitedStorage", kOldUnlimitedStoragePermission)); |
| 306 aliases.push_back(PermissionsInfo::AliasInfo( | 307 aliases.push_back(PermissionsInfo::AliasInfo( |
| 307 "tabs", kWindowsPermission)); | 308 "tabs", kWindowsPermission)); |
| 308 return aliases; | 309 return aliases; |
| 309 } | 310 } |
| 310 | 311 |
| 311 } // namespace extensions | 312 } // namespace extensions |
| OLD | NEW |