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

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

Issue 60583003: The chrome.screenlockPrivate API allows select apps to control the ChromeOS ScreenLocker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 PermissionMessage::kWallpaper }, 156 PermissionMessage::kWallpaper },
157 { APIPermission::kWebNavigation, "webNavigation", 157 { APIPermission::kWebNavigation, "webNavigation",
158 APIPermissionInfo::kFlagNone, 158 APIPermissionInfo::kFlagNone,
159 IDS_EXTENSION_PROMPT_WARNING_TABS, PermissionMessage::kTabs }, 159 IDS_EXTENSION_PROMPT_WARNING_TABS, PermissionMessage::kTabs },
160 { APIPermission::kWebRequest, "webRequest" }, 160 { APIPermission::kWebRequest, "webRequest" },
161 { APIPermission::kWebRequestBlocking, "webRequestBlocking" }, 161 { APIPermission::kWebRequestBlocking, "webRequestBlocking" },
162 { APIPermission::kWebView, "webview", 162 { APIPermission::kWebView, "webview",
163 APIPermissionInfo::kFlagCannotBeOptional }, 163 APIPermissionInfo::kFlagCannotBeOptional },
164 164
165 // Register private permissions. 165 // Register private permissions.
166 { APIPermission::kScreenlockPrivate, "screenlockPrivate",
167 APIPermissionInfo::kFlagCannotBeOptional,
168 IDS_EXTENSION_PROMPT_WARNING_SCREENLOCK_PRIVATE,
169 PermissionMessage::kScreenlockPrivate },
166 { APIPermission::kActivityLogPrivate, "activityLogPrivate", 170 { APIPermission::kActivityLogPrivate, "activityLogPrivate",
167 APIPermissionInfo::kFlagCannotBeOptional, 171 APIPermissionInfo::kFlagCannotBeOptional,
168 IDS_EXTENSION_PROMPT_WARNING_ACTIVITY_LOG_PRIVATE, 172 IDS_EXTENSION_PROMPT_WARNING_ACTIVITY_LOG_PRIVATE,
169 PermissionMessage::kActivityLogPrivate }, 173 PermissionMessage::kActivityLogPrivate },
170 { APIPermission::kAutoTestPrivate, "autotestPrivate", 174 { APIPermission::kAutoTestPrivate, "autotestPrivate",
171 APIPermissionInfo::kFlagCannotBeOptional }, 175 APIPermissionInfo::kFlagCannotBeOptional },
172 { APIPermission::kBookmarkManagerPrivate, "bookmarkManagerPrivate", 176 { APIPermission::kBookmarkManagerPrivate, "bookmarkManagerPrivate",
173 APIPermissionInfo::kFlagCannotBeOptional }, 177 APIPermissionInfo::kFlagCannotBeOptional },
174 { APIPermission::kCast, "cast", 178 { APIPermission::kCast, "cast",
175 APIPermissionInfo::kFlagCannotBeOptional }, 179 APIPermissionInfo::kFlagCannotBeOptional },
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // Register aliases. 389 // Register aliases.
386 std::vector<PermissionsProvider::AliasInfo> aliases; 390 std::vector<PermissionsProvider::AliasInfo> aliases;
387 aliases.push_back(PermissionsProvider::AliasInfo( 391 aliases.push_back(PermissionsProvider::AliasInfo(
388 "unlimitedStorage", kOldUnlimitedStoragePermission)); 392 "unlimitedStorage", kOldUnlimitedStoragePermission));
389 aliases.push_back(PermissionsProvider::AliasInfo( 393 aliases.push_back(PermissionsProvider::AliasInfo(
390 "tabs", kWindowsPermission)); 394 "tabs", kWindowsPermission));
391 return aliases; 395 return aliases;
392 } 396 }
393 397
394 } // namespace extensions 398 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698