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

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

Issue 1240283002: Implementation of the device attributes API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension_api
Patch Set: Created 5 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "copresence", 113 "copresence",
114 APIPermissionInfo::kFlagNone, 114 APIPermissionInfo::kFlagNone,
115 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE, 115 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE,
116 PermissionMessage::kCopresence}, 116 PermissionMessage::kCopresence},
117 {APIPermission::kCopresencePrivate, "copresencePrivate"}, 117 {APIPermission::kCopresencePrivate, "copresencePrivate"},
118 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"}, 118 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"},
119 {APIPermission::kDataReductionProxy, 119 {APIPermission::kDataReductionProxy,
120 "dataReductionProxy", 120 "dataReductionProxy",
121 APIPermissionInfo::kFlagImpliesFullURLAccess | 121 APIPermissionInfo::kFlagImpliesFullURLAccess |
122 APIPermissionInfo::kFlagCannotBeOptional}, 122 APIPermissionInfo::kFlagCannotBeOptional},
123 {APIPermission::kEnterpriseDeviceAttributes,
124 "enterprise.deviceAttributes"},
123 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"}, 125 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"},
124 {APIPermission::kFileBrowserHandler, 126 {APIPermission::kFileBrowserHandler,
125 "fileBrowserHandler", 127 "fileBrowserHandler",
126 APIPermissionInfo::kFlagCannotBeOptional}, 128 APIPermissionInfo::kFlagCannotBeOptional},
127 {APIPermission::kFontSettings, 129 {APIPermission::kFontSettings,
128 "fontSettings", 130 "fontSettings",
129 APIPermissionInfo::kFlagCannotBeOptional}, 131 APIPermissionInfo::kFlagCannotBeOptional},
130 {APIPermission::kHistory, 132 {APIPermission::kHistory,
131 "history", 133 "history",
132 APIPermissionInfo::kFlagNone, 134 APIPermissionInfo::kFlagNone,
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 478
477 std::vector<PermissionsProvider::AliasInfo> 479 std::vector<PermissionsProvider::AliasInfo>
478 ChromeAPIPermissions::GetAllAliases() const { 480 ChromeAPIPermissions::GetAllAliases() const {
479 // Register aliases. 481 // Register aliases.
480 std::vector<PermissionsProvider::AliasInfo> aliases; 482 std::vector<PermissionsProvider::AliasInfo> aliases;
481 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 483 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
482 return aliases; 484 return aliases;
483 } 485 }
484 486
485 } // namespace extensions 487 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698