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

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

Issue 1232553003: Add new certificateProvider extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 3 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
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/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "extensions/common/permissions/api_permission.h" 8 #include "extensions/common/permissions/api_permission.h"
9 #include "extensions/common/permissions/api_permission_set.h" 9 #include "extensions/common/permissions/api_permission_set.h"
10 #include "extensions/common/permissions/media_galleries_permission.h" 10 #include "extensions/common/permissions/media_galleries_permission.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "accessibilityFeatures.modify"}, 57 "accessibilityFeatures.modify"},
58 {APIPermission::kAccessibilityFeaturesRead, "accessibilityFeatures.read"}, 58 {APIPermission::kAccessibilityFeaturesRead, "accessibilityFeatures.read"},
59 {APIPermission::kAccessibilityPrivate, "accessibilityPrivate", 59 {APIPermission::kAccessibilityPrivate, "accessibilityPrivate",
60 APIPermissionInfo::kFlagCannotBeOptional}, 60 APIPermissionInfo::kFlagCannotBeOptional},
61 {APIPermission::kActiveTab, "activeTab"}, 61 {APIPermission::kActiveTab, "activeTab"},
62 {APIPermission::kAudioModem, "audioModem"}, 62 {APIPermission::kAudioModem, "audioModem"},
63 {APIPermission::kBookmark, "bookmarks"}, 63 {APIPermission::kBookmark, "bookmarks"},
64 {APIPermission::kBrailleDisplayPrivate, "brailleDisplayPrivate", 64 {APIPermission::kBrailleDisplayPrivate, "brailleDisplayPrivate",
65 APIPermissionInfo::kFlagCannotBeOptional}, 65 APIPermissionInfo::kFlagCannotBeOptional},
66 {APIPermission::kBrowsingData, "browsingData"}, 66 {APIPermission::kBrowsingData, "browsingData"},
67 {APIPermission::kCertificateProvider, "certificateProvider"},
67 {APIPermission::kContentSettings, "contentSettings"}, 68 {APIPermission::kContentSettings, "contentSettings"},
68 {APIPermission::kContextMenus, "contextMenus"}, 69 {APIPermission::kContextMenus, "contextMenus"},
69 {APIPermission::kCookie, "cookies"}, 70 {APIPermission::kCookie, "cookies"},
70 {APIPermission::kCopresence, "copresence"}, 71 {APIPermission::kCopresence, "copresence"},
71 {APIPermission::kCopresencePrivate, "copresencePrivate"}, 72 {APIPermission::kCopresencePrivate, "copresencePrivate"},
72 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"}, 73 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"},
73 {APIPermission::kDataReductionProxy, "dataReductionProxy", 74 {APIPermission::kDataReductionProxy, "dataReductionProxy",
74 APIPermissionInfo::kFlagImpliesFullURLAccess | 75 APIPermissionInfo::kFlagImpliesFullURLAccess |
75 APIPermissionInfo::kFlagCannotBeOptional}, 76 APIPermissionInfo::kFlagCannotBeOptional},
76 {APIPermission::kEnterpriseDeviceAttributes, 77 {APIPermission::kEnterpriseDeviceAttributes,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 269
269 std::vector<PermissionsProvider::AliasInfo> 270 std::vector<PermissionsProvider::AliasInfo>
270 ChromeAPIPermissions::GetAllAliases() const { 271 ChromeAPIPermissions::GetAllAliases() const {
271 // Register aliases. 272 // Register aliases.
272 std::vector<PermissionsProvider::AliasInfo> aliases; 273 std::vector<PermissionsProvider::AliasInfo> aliases;
273 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 274 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
274 return aliases; 275 return aliases;
275 } 276 }
276 277
277 } // namespace extensions 278 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/common/extensions/permissions/chrome_permission_message_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698