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