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/permissions_info.h" | 7 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 8 #include "chrome/common/extensions/permissions/socket_permission.h" | 8 #include "chrome/common/extensions/permissions/socket_permission.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 | 183 |
| 184 // Register hosted and packaged app permissions. | 184 // Register hosted and packaged app permissions. |
| 185 { APIPermission::kAppNotifications, "appNotifications" }, | 185 { APIPermission::kAppNotifications, "appNotifications" }, |
| 186 | 186 |
| 187 // Register extension permissions. | 187 // Register extension permissions. |
| 188 { APIPermission::kActiveTab, "activeTab" }, | 188 { APIPermission::kActiveTab, "activeTab" }, |
| 189 { APIPermission::kAlarms, "alarms" }, | 189 { APIPermission::kAlarms, "alarms" }, |
| 190 { APIPermission::kBookmark, "bookmarks", kFlagNone, | 190 { APIPermission::kBookmark, "bookmarks", kFlagNone, |
| 191 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, | 191 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, |
| 192 PermissionMessage::kBookmarks }, | 192 PermissionMessage::kBookmarks }, |
| 193 { APIPermission::kBrowserTag, "browserTag", kFlagCannotBeOptional }, | 193 { APIPermission::kWebView, "webview", kFlagCannotBeOptional }, |
|
Mihai Parparita -not on Chrome
2012/10/23 20:39:23
Sorting.
Fady Samuel
2012/10/23 20:55:00
Done.
| |
| 194 { APIPermission::kBrowsingData, "browsingData" }, | 194 { APIPermission::kBrowsingData, "browsingData" }, |
| 195 { APIPermission::kContentSettings, "contentSettings", kFlagNone, | 195 { APIPermission::kContentSettings, "contentSettings", kFlagNone, |
| 196 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, | 196 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, |
| 197 PermissionMessage::kContentSettings }, | 197 PermissionMessage::kContentSettings }, |
| 198 { APIPermission::kContextMenus, "contextMenus" }, | 198 { APIPermission::kContextMenus, "contextMenus" }, |
| 199 { APIPermission::kCookie, "cookies" }, | 199 { APIPermission::kCookie, "cookies" }, |
| 200 { APIPermission::kFileBrowserHandler, "fileBrowserHandler", | 200 { APIPermission::kFileBrowserHandler, "fileBrowserHandler", |
| 201 kFlagCannotBeOptional }, | 201 kFlagCannotBeOptional }, |
| 202 { APIPermission::kFontSettings, "fontSettings", kFlagCannotBeOptional }, | 202 { APIPermission::kFontSettings, "fontSettings", kFlagCannotBeOptional }, |
| 203 { APIPermission::kHistory, "history", kFlagNone, | 203 { APIPermission::kHistory, "history", kFlagNone, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 331 pr.flags, | 331 pr.flags, |
| 332 pr.constructor); | 332 pr.constructor); |
| 333 } | 333 } |
| 334 | 334 |
| 335 // Register aliases. | 335 // Register aliases. |
| 336 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 336 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 337 info->RegisterAlias("tabs", kWindowsPermission); | 337 info->RegisterAlias("tabs", kWindowsPermission); |
| 338 } | 338 } |
| 339 | 339 |
| 340 } // namespace extensions | 340 } // namespace extensions |
| OLD | NEW |