| 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/permissions_info.h" | 7 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 { kAppNotifications, "appNotifications" }, | 73 { kAppNotifications, "appNotifications" }, |
| 74 | 74 |
| 75 // Register extension permissions. | 75 // Register extension permissions. |
| 76 { kActiveTab, "activeTab" }, | 76 { kActiveTab, "activeTab" }, |
| 77 { kAlarms, "alarms" }, | 77 { kAlarms, "alarms" }, |
| 78 { kBookmark, "bookmarks", kFlagNone, | 78 { kBookmark, "bookmarks", kFlagNone, |
| 79 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, | 79 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, |
| 80 PermissionMessage::kBookmarks }, | 80 PermissionMessage::kBookmarks }, |
| 81 { kBrowserTag, "browserTag", kFlagCannotBeOptional }, | 81 { kBrowserTag, "browserTag", kFlagCannotBeOptional }, |
| 82 { kBrowsingData, "browsingData" }, | 82 { kBrowsingData, "browsingData" }, |
| 83 { kCommands, "commands" }, |
| 83 { kContentSettings, "contentSettings", kFlagNone, | 84 { kContentSettings, "contentSettings", kFlagNone, |
| 84 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, | 85 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, |
| 85 PermissionMessage::kContentSettings }, | 86 PermissionMessage::kContentSettings }, |
| 86 { kContextMenus, "contextMenus" }, | 87 { kContextMenus, "contextMenus" }, |
| 87 { kCookie, "cookies" }, | 88 { kCookie, "cookies" }, |
| 88 { kFileBrowserHandler, "fileBrowserHandler", kFlagCannotBeOptional }, | 89 { kFileBrowserHandler, "fileBrowserHandler", kFlagCannotBeOptional }, |
| 89 { kFontSettings, "fontSettings", kFlagCannotBeOptional }, | 90 { kFontSettings, "fontSettings", kFlagCannotBeOptional }, |
| 90 { kHistory, "history", kFlagNone, | 91 { kHistory, "history", kFlagNone, |
| 91 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 92 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
| 92 PermissionMessage::kBrowsingHistory }, | 93 PermissionMessage::kBrowsingHistory }, |
| 93 { kKeybinding, "keybinding" }, | |
| 94 { kIdle, "idle" }, | 94 { kIdle, "idle" }, |
| 95 { kInput, "input", kFlagNone, | 95 { kInput, "input", kFlagNone, |
| 96 IDS_EXTENSION_PROMPT_WARNING_INPUT, | 96 IDS_EXTENSION_PROMPT_WARNING_INPUT, |
| 97 PermissionMessage::kInput }, | 97 PermissionMessage::kInput }, |
| 98 { kManagement, "management", kFlagNone, | 98 { kManagement, "management", kFlagNone, |
| 99 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, | 99 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, |
| 100 PermissionMessage::kManagement }, | 100 PermissionMessage::kManagement }, |
| 101 { kMediaGalleries, "mediaGalleries" }, | 101 { kMediaGalleries, "mediaGalleries" }, |
| 102 { kMediaGalleriesRead, "mediaGalleriesRead" }, | 102 { kMediaGalleriesRead, "mediaGalleriesRead" }, |
| 103 { kPageCapture, "pageCapture", kFlagNone, | 103 { kPageCapture, "pageCapture", kFlagNone, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 // Register aliases. | 186 // Register aliases. |
| 187 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 187 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 188 info->RegisterAlias("tabs", kWindowsPermission); | 188 info->RegisterAlias("tabs", kWindowsPermission); |
| 189 // TODO(mihaip): Should be removed for the M20 branch, see | 189 // TODO(mihaip): Should be removed for the M20 branch, see |
| 190 // http://crbug.com/120447 for more details. | 190 // http://crbug.com/120447 for more details. |
| 191 info->RegisterAlias("background", kTemporaryBackgroundAlias); | 191 info->RegisterAlias("background", kTemporaryBackgroundAlias); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace extensions | 194 } // namespace extensions |
| OLD | NEW |