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

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

Issue 875373002: First implementation of chrome.platformKeys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_idl
Patch Set: Fix .gn file. Created 5 years, 10 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 PermissionMessage::kContentSettings}, 102 PermissionMessage::kContentSettings},
103 {APIPermission::kContextMenus, "contextMenus"}, 103 {APIPermission::kContextMenus, "contextMenus"},
104 {APIPermission::kCookie, "cookies"}, 104 {APIPermission::kCookie, "cookies"},
105 {APIPermission::kCopresence, 105 {APIPermission::kCopresence,
106 "copresence", 106 "copresence",
107 APIPermissionInfo::kFlagNone, 107 APIPermissionInfo::kFlagNone,
108 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE, 108 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE,
109 PermissionMessage::kCopresence}, 109 PermissionMessage::kCopresence},
110 {APIPermission::kCopresencePrivate, "copresencePrivate"}, 110 {APIPermission::kCopresencePrivate, "copresencePrivate"},
111 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"}, 111 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"},
112 {APIPermission::kDataReductionProxy, "dataReductionProxy", 112 {APIPermission::kDataReductionProxy,
113 "dataReductionProxy",
113 APIPermissionInfo::kFlagImpliesFullURLAccess | 114 APIPermissionInfo::kFlagImpliesFullURLAccess |
114 APIPermissionInfo::kFlagCannotBeOptional}, 115 APIPermissionInfo::kFlagCannotBeOptional},
115 {APIPermission::kDocumentScan, 116 {APIPermission::kDocumentScan,
116 "documentScan", 117 "documentScan",
117 APIPermissionInfo::kFlagNone, 118 APIPermissionInfo::kFlagNone,
118 IDS_EXTENSION_PROMPT_WARNING_DOCUMENT_SCAN, 119 IDS_EXTENSION_PROMPT_WARNING_DOCUMENT_SCAN,
119 PermissionMessage::kDocumentScan}, 120 PermissionMessage::kDocumentScan},
120 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"}, 121 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"},
121 {APIPermission::kFileBrowserHandler, 122 {APIPermission::kFileBrowserHandler,
122 "fileBrowserHandler", 123 "fileBrowserHandler",
(...skipping 21 matching lines...) Expand all
144 {APIPermission::kManagement, 145 {APIPermission::kManagement,
145 "management", 146 "management",
146 APIPermissionInfo::kFlagNone, 147 APIPermissionInfo::kFlagNone,
147 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, 148 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT,
148 PermissionMessage::kManagement}, 149 PermissionMessage::kManagement},
149 {APIPermission::kNativeMessaging, 150 {APIPermission::kNativeMessaging,
150 "nativeMessaging", 151 "nativeMessaging",
151 APIPermissionInfo::kFlagNone, 152 APIPermissionInfo::kFlagNone,
152 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, 153 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING,
153 PermissionMessage::kNativeMessaging}, 154 PermissionMessage::kNativeMessaging},
155 {APIPermission::kPlatformKeys,
156 "platformKeys",
157 APIPermissionInfo::kFlagNone,
158 IDS_EXTENSION_PROMPT_WARNING_PLATFORMKEYS,
159 PermissionMessage::kPlatformKeys},
154 {APIPermission::kPrivacy, 160 {APIPermission::kPrivacy,
155 "privacy", 161 "privacy",
156 APIPermissionInfo::kFlagNone, 162 APIPermissionInfo::kFlagNone,
157 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, 163 IDS_EXTENSION_PROMPT_WARNING_PRIVACY,
158 PermissionMessage::kPrivacy}, 164 PermissionMessage::kPrivacy},
159 {APIPermission::kProcesses, 165 {APIPermission::kProcesses,
160 "processes", 166 "processes",
161 APIPermissionInfo::kFlagNone, 167 APIPermissionInfo::kFlagNone,
162 IDS_EXTENSION_PROMPT_WARNING_HISTORY_READ, 168 IDS_EXTENSION_PROMPT_WARNING_HISTORY_READ,
163 PermissionMessage::kTabs}, 169 PermissionMessage::kTabs},
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 437
432 std::vector<PermissionsProvider::AliasInfo> 438 std::vector<PermissionsProvider::AliasInfo>
433 ChromeAPIPermissions::GetAllAliases() const { 439 ChromeAPIPermissions::GetAllAliases() const {
434 // Register aliases. 440 // Register aliases.
435 std::vector<PermissionsProvider::AliasInfo> aliases; 441 std::vector<PermissionsProvider::AliasInfo> aliases;
436 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 442 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
437 return aliases; 443 return aliases;
438 } 444 }
439 445
440 } // namespace extensions 446 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698