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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 { APIPermission::kPrivacy, "privacy", kFlagNone, | 215 { APIPermission::kPrivacy, "privacy", kFlagNone, |
216 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, | 216 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, |
217 PermissionMessage::kPrivacy }, | 217 PermissionMessage::kPrivacy }, |
218 { APIPermission::kStorage, "storage" }, | 218 { APIPermission::kStorage, "storage" }, |
219 // TODO(kinuko): syncFileSystem permission should take the service name | 219 // TODO(kinuko): syncFileSystem permission should take the service name |
220 // parameter. | 220 // parameter. |
221 { APIPermission::kSyncFileSystem, "syncFileSystem" }, | 221 { APIPermission::kSyncFileSystem, "syncFileSystem" }, |
222 { APIPermission::kTab, "tabs", kFlagNone, | 222 { APIPermission::kTab, "tabs", kFlagNone, |
223 IDS_EXTENSION_PROMPT_WARNING_TABS, | 223 IDS_EXTENSION_PROMPT_WARNING_TABS, |
224 PermissionMessage::kTabs }, | 224 PermissionMessage::kTabs }, |
225 { APIPermission::kTabCapture, "tabCapture", kFlagNone, | |
226 IDS_EXTENSION_PROMPT_WARNING_TAB_CAPTURE, | |
Aaron Boodman
2012/10/17 20:28:14
This should be below with the "full url access per
justinlin
2012/10/17 23:41:48
Done.
| |
227 PermissionMessage::kTabCapture }, | |
225 { APIPermission::kTopSites, "topSites", kFlagNone, | 228 { APIPermission::kTopSites, "topSites", kFlagNone, |
226 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 229 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
227 PermissionMessage::kBrowsingHistory }, | 230 PermissionMessage::kBrowsingHistory }, |
228 { APIPermission::kTts, "tts", 0, kFlagCannotBeOptional }, | 231 { APIPermission::kTts, "tts", 0, kFlagCannotBeOptional }, |
229 { APIPermission::kTtsEngine, "ttsEngine", kFlagCannotBeOptional, | 232 { APIPermission::kTtsEngine, "ttsEngine", kFlagCannotBeOptional, |
230 IDS_EXTENSION_PROMPT_WARNING_TTS_ENGINE, | 233 IDS_EXTENSION_PROMPT_WARNING_TTS_ENGINE, |
231 PermissionMessage::kTtsEngine }, | 234 PermissionMessage::kTtsEngine }, |
232 { APIPermission::kWebNavigation, "webNavigation", kFlagNone, | 235 { APIPermission::kWebNavigation, "webNavigation", kFlagNone, |
233 IDS_EXTENSION_PROMPT_WARNING_TABS, PermissionMessage::kTabs }, | 236 IDS_EXTENSION_PROMPT_WARNING_TABS, PermissionMessage::kTabs }, |
234 { APIPermission::kWebRequest, "webRequest" }, | 237 { APIPermission::kWebRequest, "webRequest" }, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 pr.flags, | 328 pr.flags, |
326 pr.constructor); | 329 pr.constructor); |
327 } | 330 } |
328 | 331 |
329 // Register aliases. | 332 // Register aliases. |
330 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 333 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
331 info->RegisterAlias("tabs", kWindowsPermission); | 334 info->RegisterAlias("tabs", kWindowsPermission); |
332 } | 335 } |
333 | 336 |
334 } // namespace extensions | 337 } // namespace extensions |
OLD | NEW |