| 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 #include "chrome/common/extensions/permissions/api_permission.h" | 5 #include "chrome/common/extensions/permissions/api_permission.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h" | 7 #include "chrome/common/extensions/permissions/bluetooth_device_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/permissions_info.h" | 9 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 10 #include "chrome/common/extensions/permissions/socket_permission.h" | 10 #include "chrome/common/extensions/permissions/socket_permission.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 { APIPermission::kDeclarativeContent, "declarativeContent" }, | 179 { APIPermission::kDeclarativeContent, "declarativeContent" }, |
| 180 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" }, | 180 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" }, |
| 181 { APIPermission::kDownloads, "downloads", kFlagNone, | 181 { APIPermission::kDownloads, "downloads", kFlagNone, |
| 182 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, | 182 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, |
| 183 PermissionMessage::kDownloads }, | 183 PermissionMessage::kDownloads }, |
| 184 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional }, | 184 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional }, |
| 185 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional, | 185 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional, |
| 186 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 186 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
| 187 PermissionMessage::kGeolocation }, | 187 PermissionMessage::kGeolocation }, |
| 188 { APIPermission::kNotification, "notifications" }, | 188 { APIPermission::kNotification, "notifications" }, |
| 189 { APIPermission::kScreensaver, "screensaver" }, |
| 189 { APIPermission::kUnlimitedStorage, "unlimitedStorage", | 190 { APIPermission::kUnlimitedStorage, "unlimitedStorage", |
| 190 kFlagCannotBeOptional }, | 191 kFlagCannotBeOptional }, |
| 191 | 192 |
| 192 // Register hosted and packaged app permissions. | 193 // Register hosted and packaged app permissions. |
| 193 { APIPermission::kAppNotifications, "appNotifications" }, | 194 { APIPermission::kAppNotifications, "appNotifications" }, |
| 194 | 195 |
| 195 // Register extension permissions. | 196 // Register extension permissions. |
| 196 { APIPermission::kActiveTab, "activeTab" }, | 197 { APIPermission::kActiveTab, "activeTab" }, |
| 197 { APIPermission::kAlarms, "alarms" }, | 198 { APIPermission::kAlarms, "alarms" }, |
| 198 { APIPermission::kBookmark, "bookmarks", kFlagNone, | 199 { APIPermission::kBookmark, "bookmarks", kFlagNone, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 pr.flags, | 364 pr.flags, |
| 364 pr.constructor); | 365 pr.constructor); |
| 365 } | 366 } |
| 366 | 367 |
| 367 // Register aliases. | 368 // Register aliases. |
| 368 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 369 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 369 info->RegisterAlias("tabs", kWindowsPermission); | 370 info->RegisterAlias("tabs", kWindowsPermission); |
| 370 } | 371 } |
| 371 | 372 |
| 372 } // namespace extensions | 373 } // namespace extensions |
| OLD | NEW |