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

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

Issue 16439016: extfs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months 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/api_permission.h" 7 #include "chrome/common/extensions/permissions/api_permission.h"
8 #include "chrome/common/extensions/permissions/api_permission_set.h" 8 #include "chrome/common/extensions/permissions/api_permission_set.h"
9 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h" 9 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h"
10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" 10 #include "chrome/common/extensions/permissions/media_galleries_permission.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 { APIPermission::kIdentity, "identity" }, 53 { APIPermission::kIdentity, "identity" },
54 { APIPermission::kExperimental, "experimental", 54 { APIPermission::kExperimental, "experimental",
55 APIPermissionInfo::kFlagCannotBeOptional }, 55 APIPermissionInfo::kFlagCannotBeOptional },
56 // NOTE(kalman): this is provided by a manifest property but needs to 56 // NOTE(kalman): this is provided by a manifest property but needs to
57 // appear in the install permission dialogue, so we need a fake 57 // appear in the install permission dialogue, so we need a fake
58 // permission for it. See http://crbug.com/247857. 58 // permission for it. See http://crbug.com/247857.
59 { APIPermission::kWebConnectable, "webConnectable", 59 { APIPermission::kWebConnectable, "webConnectable",
60 APIPermissionInfo::kFlagCannotBeOptional, 60 APIPermissionInfo::kFlagCannotBeOptional,
61 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE, 61 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE,
62 PermissionMessage::kWebConnectable}, 62 PermissionMessage::kWebConnectable},
63 { APIPermission::kExtfs, "extfs",
64 APIPermissionInfo::kFlagCannotBeOptional },
63 { APIPermission::kGeolocation, "geolocation", 65 { APIPermission::kGeolocation, "geolocation",
64 APIPermissionInfo::kFlagCannotBeOptional, 66 APIPermissionInfo::kFlagCannotBeOptional,
65 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 67 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
66 PermissionMessage::kGeolocation }, 68 PermissionMessage::kGeolocation },
67 { APIPermission::kNotification, "notifications" }, 69 { APIPermission::kNotification, "notifications" },
68 { APIPermission::kScreensaver, "screensaver" }, 70 { APIPermission::kScreensaver, "screensaver" },
69 { APIPermission::kUnlimitedStorage, "unlimitedStorage", 71 { APIPermission::kUnlimitedStorage, "unlimitedStorage",
70 APIPermissionInfo::kFlagCannotBeOptional }, 72 APIPermissionInfo::kFlagCannotBeOptional },
71 73
72 // Register extension permissions. 74 // Register extension permissions.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Register aliases. 312 // Register aliases.
311 std::vector<PermissionsInfo::AliasInfo> aliases; 313 std::vector<PermissionsInfo::AliasInfo> aliases;
312 aliases.push_back(PermissionsInfo::AliasInfo( 314 aliases.push_back(PermissionsInfo::AliasInfo(
313 "unlimitedStorage", kOldUnlimitedStoragePermission)); 315 "unlimitedStorage", kOldUnlimitedStoragePermission));
314 aliases.push_back(PermissionsInfo::AliasInfo( 316 aliases.push_back(PermissionsInfo::AliasInfo(
315 "tabs", kWindowsPermission)); 317 "tabs", kWindowsPermission));
316 return aliases; 318 return aliases;
317 } 319 }
318 320
319 } // namespace extensions 321 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698