| 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/permissions_info.h" | 8 #include "chrome/common/extensions/permissions/permissions_info.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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int l10n_message_id; | 172 int l10n_message_id; |
| 173 PermissionMessage::ID message_id; | 173 PermissionMessage::ID message_id; |
| 174 APIPermissionConstructor constructor; | 174 APIPermissionConstructor constructor; |
| 175 } PermissionsToRegister[] = { | 175 } PermissionsToRegister[] = { |
| 176 // Register permissions for all extension types. | 176 // Register permissions for all extension types. |
| 177 { APIPermission::kBackground, "background" }, | 177 { APIPermission::kBackground, "background" }, |
| 178 { APIPermission::kClipboardRead, "clipboardRead", kFlagNone, | 178 { APIPermission::kClipboardRead, "clipboardRead", kFlagNone, |
| 179 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD, | 179 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD, |
| 180 PermissionMessage::kClipboard }, | 180 PermissionMessage::kClipboard }, |
| 181 { APIPermission::kClipboardWrite, "clipboardWrite" }, | 181 { APIPermission::kClipboardWrite, "clipboardWrite" }, |
| 182 { APIPermission::kDeclarativeContent, "declarativeContent" }, |
| 182 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" }, | 183 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" }, |
| 183 { APIPermission::kDownloads, "downloads", kFlagNone, | 184 { APIPermission::kDownloads, "downloads", kFlagNone, |
| 184 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, | 185 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, |
| 185 PermissionMessage::kDownloads }, | 186 PermissionMessage::kDownloads }, |
| 186 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional }, | 187 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional }, |
| 187 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional, | 188 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional, |
| 188 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 189 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
| 189 PermissionMessage::kGeolocation }, | 190 PermissionMessage::kGeolocation }, |
| 190 { APIPermission::kNotification, "notifications" }, | 191 { APIPermission::kNotification, "notifications" }, |
| 191 { APIPermission::kUnlimitedStorage, "unlimitedStorage", | 192 { APIPermission::kUnlimitedStorage, "unlimitedStorage", |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 pr.flags, | 360 pr.flags, |
| 360 pr.constructor); | 361 pr.constructor); |
| 361 } | 362 } |
| 362 | 363 |
| 363 // Register aliases. | 364 // Register aliases. |
| 364 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 365 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 365 info->RegisterAlias("tabs", kWindowsPermission); | 366 info->RegisterAlias("tabs", kWindowsPermission); |
| 366 } | 367 } |
| 367 | 368 |
| 368 } // namespace extensions | 369 } // namespace extensions |
| OLD | NEW |