| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 { APIPermission::kHistory, "history", kFlagNone, | 211 { APIPermission::kHistory, "history", kFlagNone, |
| 212 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 212 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
| 213 PermissionMessage::kBrowsingHistory }, | 213 PermissionMessage::kBrowsingHistory }, |
| 214 { APIPermission::kIdle, "idle" }, | 214 { APIPermission::kIdle, "idle" }, |
| 215 { APIPermission::kInput, "input", kFlagNone, | 215 { APIPermission::kInput, "input", kFlagNone, |
| 216 IDS_EXTENSION_PROMPT_WARNING_INPUT, | 216 IDS_EXTENSION_PROMPT_WARNING_INPUT, |
| 217 PermissionMessage::kInput }, | 217 PermissionMessage::kInput }, |
| 218 { APIPermission::kManagement, "management", kFlagNone, | 218 { APIPermission::kManagement, "management", kFlagNone, |
| 219 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, | 219 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, |
| 220 PermissionMessage::kManagement }, | 220 PermissionMessage::kManagement }, |
| 221 { APIPermission::kNativeMessaging, "nativeMessaging" }, |
| 221 { APIPermission::kPrivacy, "privacy", kFlagNone, | 222 { APIPermission::kPrivacy, "privacy", kFlagNone, |
| 222 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, | 223 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, |
| 223 PermissionMessage::kPrivacy }, | 224 PermissionMessage::kPrivacy }, |
| 224 { APIPermission::kSessionRestore, "sessionRestore" }, | 225 { APIPermission::kSessionRestore, "sessionRestore" }, |
| 225 { APIPermission::kStorage, "storage" }, | 226 { APIPermission::kStorage, "storage" }, |
| 226 // TODO(kinuko): syncFileSystem permission should take the service name | 227 // TODO(kinuko): syncFileSystem permission should take the service name |
| 227 // parameter. | 228 // parameter. |
| 228 { APIPermission::kSyncFileSystem, "syncFileSystem" }, | 229 { APIPermission::kSyncFileSystem, "syncFileSystem" }, |
| 229 { APIPermission::kTab, "tabs", kFlagNone, | 230 { APIPermission::kTab, "tabs", kFlagNone, |
| 230 IDS_EXTENSION_PROMPT_WARNING_TABS, | 231 IDS_EXTENSION_PROMPT_WARNING_TABS, |
| (...skipping 136 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 |