| 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/filesystem_permission.h" | 7 #include "chrome/common/extensions/permissions/filesystem_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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 // Full url access permissions. | 272 // Full url access permissions. |
| 273 { APIPermission::kDebugger, "debugger", | 273 { APIPermission::kDebugger, "debugger", |
| 274 kFlagImpliesFullURLAccess | kFlagCannotBeOptional, | 274 kFlagImpliesFullURLAccess | kFlagCannotBeOptional, |
| 275 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, | 275 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, |
| 276 PermissionMessage::kDebugger }, | 276 PermissionMessage::kDebugger }, |
| 277 { APIPermission::kDevtools, "devtools", | 277 { APIPermission::kDevtools, "devtools", |
| 278 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, | 278 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, |
| 279 { APIPermission::kPageCapture, "pageCapture", | 279 { APIPermission::kPageCapture, "pageCapture", |
| 280 kFlagImpliesFullURLAccess }, | 280 kFlagImpliesFullURLAccess }, |
| 281 { APIPermission::kTabCapture, "tabCapture", |
| 282 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, |
| 281 { APIPermission::kPlugin, "plugin", | 283 { APIPermission::kPlugin, "plugin", |
| 282 kFlagImpliesFullURLAccess | kFlagImpliesFullAccess | | 284 kFlagImpliesFullURLAccess | kFlagImpliesFullAccess | |
| 283 kFlagCannotBeOptional, | 285 kFlagCannotBeOptional, |
| 284 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS, | 286 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS, |
| 285 PermissionMessage::kFullAccess }, | 287 PermissionMessage::kFullAccess }, |
| 286 { APIPermission::kProxy, "proxy", | 288 { APIPermission::kProxy, "proxy", |
| 287 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, | 289 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, |
| 288 | 290 |
| 289 // Platform-app permissions. | 291 // Platform-app permissions. |
| 290 { APIPermission::kSerial, "serial", kFlagNone, | 292 { APIPermission::kSerial, "serial", kFlagNone, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 pr.flags, | 327 pr.flags, |
| 326 pr.constructor); | 328 pr.constructor); |
| 327 } | 329 } |
| 328 | 330 |
| 329 // Register aliases. | 331 // Register aliases. |
| 330 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 332 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 331 info->RegisterAlias("tabs", kWindowsPermission); | 333 info->RegisterAlias("tabs", kWindowsPermission); |
| 332 } | 334 } |
| 333 | 335 |
| 334 } // namespace extensions | 336 } // namespace extensions |
| OLD | NEW |