OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chrome_api_permissions.h" | 5 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
6 | 6 |
7 #include "extensions/common/permissions/api_permission.h" | 7 #include "extensions/common/permissions/api_permission.h" |
8 #include "extensions/common/permissions/api_permission_set.h" | 8 #include "extensions/common/permissions/api_permission_set.h" |
9 #include "extensions/common/permissions/media_galleries_permission.h" | 9 #include "extensions/common/permissions/media_galleries_permission.h" |
10 #include "extensions/common/permissions/permission_message.h" | 10 #include "extensions/common/permissions/permission_message.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 {APIPermission::kFontSettings, "fontSettings", | 105 {APIPermission::kFontSettings, "fontSettings", |
106 APIPermissionInfo::kFlagCannotBeOptional}, | 106 APIPermissionInfo::kFlagCannotBeOptional}, |
107 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone, | 107 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone, |
108 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 108 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
109 PermissionMessage::kBrowsingHistory}, | 109 PermissionMessage::kBrowsingHistory}, |
110 {APIPermission::kIdltest, "idltest"}, | 110 {APIPermission::kIdltest, "idltest"}, |
111 {APIPermission::kIdle, "idle"}, | 111 {APIPermission::kIdle, "idle"}, |
112 {APIPermission::kInfobars, "infobars"}, | 112 {APIPermission::kInfobars, "infobars"}, |
113 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone, | 113 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone, |
114 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput}, | 114 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput}, |
| 115 {APIPermission::kLedger, "ledger"}, |
115 {APIPermission::kLocation, "location", | 116 {APIPermission::kLocation, "location", |
116 APIPermissionInfo::kFlagCannotBeOptional, | 117 APIPermissionInfo::kFlagCannotBeOptional, |
117 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 118 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
118 PermissionMessage::kGeolocation}, | 119 PermissionMessage::kGeolocation}, |
119 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone, | 120 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone, |
120 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement}, | 121 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement}, |
121 {APIPermission::kNativeMessaging, "nativeMessaging", | 122 {APIPermission::kNativeMessaging, "nativeMessaging", |
122 APIPermissionInfo::kFlagNone, | 123 APIPermissionInfo::kFlagNone, |
123 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, | 124 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, |
124 PermissionMessage::kNativeMessaging}, | 125 PermissionMessage::kNativeMessaging}, |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", | 368 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", |
368 kOldOverrideEscFullscreenPermission)); | 369 kOldOverrideEscFullscreenPermission)); |
369 aliases.push_back(PermissionsProvider::AliasInfo( | 370 aliases.push_back(PermissionsProvider::AliasInfo( |
370 "unlimitedStorage", kOldUnlimitedStoragePermission)); | 371 "unlimitedStorage", kOldUnlimitedStoragePermission)); |
371 aliases.push_back(PermissionsProvider::AliasInfo( | 372 aliases.push_back(PermissionsProvider::AliasInfo( |
372 "tabs", kWindowsPermission)); | 373 "tabs", kWindowsPermission)); |
373 return aliases; | 374 return aliases; |
374 } | 375 } |
375 | 376 |
376 } // namespace extensions | 377 } // namespace extensions |
OLD | NEW |