Chromium Code Reviews| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 209 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 209 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
| 210 PermissionMessage::kBrowsingHistory }, | 210 PermissionMessage::kBrowsingHistory }, |
| 211 { APIPermission::kIdle, "idle" }, | 211 { APIPermission::kIdle, "idle" }, |
| 212 { APIPermission::kInput, "input", kFlagNone, | 212 { APIPermission::kInput, "input", kFlagNone, |
| 213 IDS_EXTENSION_PROMPT_WARNING_INPUT, | 213 IDS_EXTENSION_PROMPT_WARNING_INPUT, |
| 214 PermissionMessage::kInput }, | 214 PermissionMessage::kInput }, |
| 215 { APIPermission::kManagement, "management", kFlagNone, | 215 { APIPermission::kManagement, "management", kFlagNone, |
| 216 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, | 216 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, |
| 217 PermissionMessage::kManagement }, | 217 PermissionMessage::kManagement }, |
| 218 { APIPermission::kNativeMessaging, "nativeMessaging" }, | 218 { APIPermission::kNativeMessaging, "nativeMessaging" }, |
| 219 { APIPermission::kPower, "power", }, | |
|
not at google - send to devlin
2013/03/19 21:16:39
should there be a warning for this permission? it
Daniel Erat
2013/03/19 23:39:38
The consensus at the API review meeting last week
not at google - send to devlin
2013/03/20 00:25:50
cool, I missed the one last week.
| |
| 219 { APIPermission::kPrivacy, "privacy", kFlagNone, | 220 { APIPermission::kPrivacy, "privacy", kFlagNone, |
| 220 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, | 221 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, |
| 221 PermissionMessage::kPrivacy }, | 222 PermissionMessage::kPrivacy }, |
| 222 { APIPermission::kSessionRestore, "sessionRestore" }, | 223 { APIPermission::kSessionRestore, "sessionRestore" }, |
| 223 { APIPermission::kStorage, "storage" }, | 224 { APIPermission::kStorage, "storage" }, |
| 224 // TODO(kinuko): syncFileSystem permission should take the service name | 225 // TODO(kinuko): syncFileSystem permission should take the service name |
| 225 // parameter. | 226 // parameter. |
| 226 { APIPermission::kSyncFileSystem, "syncFileSystem" }, | 227 { APIPermission::kSyncFileSystem, "syncFileSystem" }, |
| 227 { APIPermission::kTab, "tabs", kFlagNone, | 228 { APIPermission::kTab, "tabs", kFlagNone, |
| 228 IDS_EXTENSION_PROMPT_WARNING_TABS, | 229 IDS_EXTENSION_PROMPT_WARNING_TABS, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 pr.flags, | 368 pr.flags, |
| 368 pr.constructor); | 369 pr.constructor); |
| 369 } | 370 } |
| 370 | 371 |
| 371 // Register aliases. | 372 // Register aliases. |
| 372 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 373 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 373 info->RegisterAlias("tabs", kWindowsPermission); | 374 info->RegisterAlias("tabs", kWindowsPermission); |
| 374 } | 375 } |
| 375 | 376 |
| 376 } // namespace extensions | 377 } // namespace extensions |
| OLD | NEW |