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

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

Issue 356673003: Notification Provider API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 "extensions/common/permissions/api_permission.h" 7 #include "extensions/common/permissions/api_permission.h"
8 #include "extensions/common/permissions/api_permission_set.h" 8 #include "extensions/common/permissions/api_permission_set.h"
9 #include "extensions/common/permissions/media_galleries_permission.h" 9 #include "extensions/common/permissions/media_galleries_permission.h"
10 #include "extensions/common/permissions/permission_message.h" 10 #include "extensions/common/permissions/permission_message.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 PermissionMessage::kFullAccess}, 284 PermissionMessage::kFullAccess},
285 {APIPermission::kProxy, "proxy", 285 {APIPermission::kProxy, "proxy",
286 APIPermissionInfo::kFlagImpliesFullURLAccess | 286 APIPermissionInfo::kFlagImpliesFullURLAccess |
287 APIPermissionInfo::kFlagCannotBeOptional}, 287 APIPermissionInfo::kFlagCannotBeOptional},
288 288
289 // Platform-app permissions. 289 // Platform-app permissions.
290 {APIPermission::kAlwaysOnTopWindows, "app.window.alwaysOnTop"}, 290 {APIPermission::kAlwaysOnTopWindows, "app.window.alwaysOnTop"},
291 {APIPermission::kAudioCapture, "audioCapture", 291 {APIPermission::kAudioCapture, "audioCapture",
292 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 292 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
293 PermissionMessage::kAudioCapture}, 293 PermissionMessage::kAudioCapture},
294 {APIPermission::kNotificationProvider, "notificationProvider"},
not at google - send to devlin 2014/07/28 21:32:39 this isn't just a platform app permission - at lea
liyanhou 2014/07/29 18:26:54 Done.
294 {APIPermission::kVideoCapture, "videoCapture", 295 {APIPermission::kVideoCapture, "videoCapture",
295 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, 296 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
296 PermissionMessage::kVideoCapture}, 297 PermissionMessage::kVideoCapture},
297 // The permission string for "fileSystem" is only shown when 298 // The permission string for "fileSystem" is only shown when
298 // "write" or "directory" is present. Read-only access is only 299 // "write" or "directory" is present. Read-only access is only
299 // granted after the user has been shown a file or directory 300 // granted after the user has been shown a file or directory
300 // chooser dialog and selected a file or directory. Selecting 301 // chooser dialog and selected a file or directory. Selecting
301 // the file or directory is considered consent to read it. 302 // the file or directory is considered consent to read it.
302 {APIPermission::kFileSystem, "fileSystem"}, 303 {APIPermission::kFileSystem, "fileSystem"},
303 {APIPermission::kFileSystemDirectory, "fileSystem.directory", 304 {APIPermission::kFileSystemDirectory, "fileSystem.directory",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 373 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
373 kOldOverrideEscFullscreenPermission)); 374 kOldOverrideEscFullscreenPermission));
374 aliases.push_back(PermissionsProvider::AliasInfo( 375 aliases.push_back(PermissionsProvider::AliasInfo(
375 "unlimitedStorage", kOldUnlimitedStoragePermission)); 376 "unlimitedStorage", kOldUnlimitedStoragePermission));
376 aliases.push_back(PermissionsProvider::AliasInfo( 377 aliases.push_back(PermissionsProvider::AliasInfo(
377 "tabs", kWindowsPermission)); 378 "tabs", kWindowsPermission));
378 return aliases; 379 return aliases;
379 } 380 }
380 381
381 } // namespace extensions 382 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698