Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/common/extensions/permissions/chrome_api_permissions.cc

Issue 49333004: Make app APIs implicit within _api_features.json not _permission_features.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delete component extension granting Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/common/extensions/permissions/bluetooth_permission.h" 7 #include "chrome/common/extensions/permissions/bluetooth_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/socket_permission.h" 9 #include "chrome/common/extensions/permissions/socket_permission.h"
10 #include "chrome/common/extensions/permissions/usb_device_permission.h" 10 #include "chrome/common/extensions/permissions/usb_device_permission.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 IDS_EXTENSION_PROMPT_WARNING_SERIAL, 274 IDS_EXTENSION_PROMPT_WARNING_SERIAL,
275 PermissionMessage::kSerial }, 275 PermissionMessage::kSerial },
276 // Because warning messages for the "socket" permission vary based on the 276 // Because warning messages for the "socket" permission vary based on the
277 // permissions parameters, no message ID or message text is specified here. 277 // permissions parameters, no message ID or message text is specified here.
278 // The message ID and text used will be determined at run-time in the 278 // The message ID and text used will be determined at run-time in the
279 // |SocketPermission| class. 279 // |SocketPermission| class.
280 { APIPermission::kSocket, "socket", 280 { APIPermission::kSocket, "socket",
281 APIPermissionInfo::kFlagCannotBeOptional, 0, 281 APIPermissionInfo::kFlagCannotBeOptional, 0,
282 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> }, 282 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> },
283 { APIPermission::kSocketsUdp, "sockets.udp" }, 283 { APIPermission::kSocketsUdp, "sockets.udp" },
284 { APIPermission::kAppCurrentWindowInternal, "app.currentWindowInternal" },
285 { APIPermission::kAppRuntime, "app.runtime" },
286 { APIPermission::kAppWindow, "app.window" },
287 { APIPermission::kAudioCapture, "audioCapture", 284 { APIPermission::kAudioCapture, "audioCapture",
288 APIPermissionInfo::kFlagNone, 285 APIPermissionInfo::kFlagNone,
289 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 286 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
290 PermissionMessage::kAudioCapture }, 287 PermissionMessage::kAudioCapture },
291 { APIPermission::kVideoCapture, "videoCapture", 288 { APIPermission::kVideoCapture, "videoCapture",
292 APIPermissionInfo::kFlagNone, 289 APIPermissionInfo::kFlagNone,
293 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, 290 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
294 PermissionMessage::kVideoCapture }, 291 PermissionMessage::kVideoCapture },
295 // The permission string for "fileSystem" is only shown when "write" or 292 // The permission string for "fileSystem" is only shown when "write" or
296 // "directory" is present. Read-only access is only granted after the user 293 // "directory" is present. Read-only access is only granted after the user
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // Register aliases. 364 // Register aliases.
368 std::vector<PermissionsProvider::AliasInfo> aliases; 365 std::vector<PermissionsProvider::AliasInfo> aliases;
369 aliases.push_back(PermissionsProvider::AliasInfo( 366 aliases.push_back(PermissionsProvider::AliasInfo(
370 "unlimitedStorage", kOldUnlimitedStoragePermission)); 367 "unlimitedStorage", kOldUnlimitedStoragePermission));
371 aliases.push_back(PermissionsProvider::AliasInfo( 368 aliases.push_back(PermissionsProvider::AliasInfo(
372 "tabs", kWindowsPermission)); 369 "tabs", kWindowsPermission));
373 return aliases; 370 return aliases;
374 } 371 }
375 372
376 } // namespace extensions 373 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/features/simple_feature.cc ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698