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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 { APIPermission::kNotification, "notifications" }, | 188 { APIPermission::kNotification, "notifications" }, |
189 { APIPermission::kScreensaver, "screensaver" }, | 189 { APIPermission::kScreensaver, "screensaver" }, |
190 { APIPermission::kUnlimitedStorage, "unlimitedStorage", | 190 { APIPermission::kUnlimitedStorage, "unlimitedStorage", |
191 kFlagCannotBeOptional }, | 191 kFlagCannotBeOptional }, |
192 | 192 |
193 // Register hosted and packaged app permissions. | 193 // Register hosted and packaged app permissions. |
194 { APIPermission::kAppNotifications, "appNotifications" }, | 194 { APIPermission::kAppNotifications, "appNotifications" }, |
195 | 195 |
196 // Register extension permissions. | 196 // Register extension permissions. |
197 { APIPermission::kActiveTab, "activeTab" }, | 197 { APIPermission::kActiveTab, "activeTab" }, |
198 { APIPermission::kAdView, "adview", kFlagCannotBeOptional }, | |
asargent_no_longer_on_chrome
2013/03/09 00:51:05
Any reason not to let this be an optional permissi
rpaquay
2013/03/12 19:56:48
<webview> is non optional too. Reading the link ab
asargent_no_longer_on_chrome
2013/03/12 20:54:27
Note that the *developer* gets to choose if the pe
rpaquay
2013/03/12 23:05:36
Oh I see, I missed that part, sorry. I think you a
| |
198 { APIPermission::kAlarms, "alarms" }, | 199 { APIPermission::kAlarms, "alarms" }, |
199 { APIPermission::kBookmark, "bookmarks", kFlagNone, | 200 { APIPermission::kBookmark, "bookmarks", kFlagNone, |
200 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, | 201 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, |
201 PermissionMessage::kBookmarks }, | 202 PermissionMessage::kBookmarks }, |
202 { APIPermission::kBrowsingData, "browsingData" }, | 203 { APIPermission::kBrowsingData, "browsingData" }, |
203 { APIPermission::kContentSettings, "contentSettings", kFlagNone, | 204 { APIPermission::kContentSettings, "contentSettings", kFlagNone, |
204 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, | 205 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, |
205 PermissionMessage::kContentSettings }, | 206 PermissionMessage::kContentSettings }, |
206 { APIPermission::kContextMenus, "contextMenus" }, | 207 { APIPermission::kContextMenus, "contextMenus" }, |
207 { APIPermission::kCookie, "cookies" }, | 208 { APIPermission::kCookie, "cookies" }, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 pr.flags, | 370 pr.flags, |
370 pr.constructor); | 371 pr.constructor); |
371 } | 372 } |
372 | 373 |
373 // Register aliases. | 374 // Register aliases. |
374 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 375 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
375 info->RegisterAlias("tabs", kWindowsPermission); | 376 info->RegisterAlias("tabs", kWindowsPermission); |
376 } | 377 } |
377 | 378 |
378 } // namespace extensions | 379 } // namespace extensions |
OLD | NEW |