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

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

Issue 493453004: app_shell: Add audio and video capture support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (video-capture) 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 "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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 APIPermissionInfo::kFlagCannotBeOptional | 289 APIPermissionInfo::kFlagCannotBeOptional |
290 APIPermissionInfo::kFlagInternal, 290 APIPermissionInfo::kFlagInternal,
291 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS, 291 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS,
292 PermissionMessage::kFullAccess}, 292 PermissionMessage::kFullAccess},
293 {APIPermission::kProxy, "proxy", 293 {APIPermission::kProxy, "proxy",
294 APIPermissionInfo::kFlagImpliesFullURLAccess | 294 APIPermissionInfo::kFlagImpliesFullURLAccess |
295 APIPermissionInfo::kFlagCannotBeOptional}, 295 APIPermissionInfo::kFlagCannotBeOptional},
296 296
297 // Platform-app permissions. 297 // Platform-app permissions.
298 {APIPermission::kAlwaysOnTopWindows, "app.window.alwaysOnTop"}, 298 {APIPermission::kAlwaysOnTopWindows, "app.window.alwaysOnTop"},
299 {APIPermission::kAudioCapture, "audioCapture",
300 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
301 PermissionMessage::kAudioCapture},
302 {APIPermission::kVideoCapture, "videoCapture",
303 APIPermissionInfo::kFlagNone, IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
304 PermissionMessage::kVideoCapture},
305 // The permission string for "fileSystem" is only shown when 299 // The permission string for "fileSystem" is only shown when
306 // "write" or "directory" is present. Read-only access is only 300 // "write" or "directory" is present. Read-only access is only
307 // granted after the user has been shown a file or directory 301 // granted after the user has been shown a file or directory
308 // chooser dialog and selected a file or directory. Selecting 302 // chooser dialog and selected a file or directory. Selecting
309 // the file or directory is considered consent to read it. 303 // the file or directory is considered consent to read it.
310 {APIPermission::kFileSystem, "fileSystem"}, 304 {APIPermission::kFileSystem, "fileSystem"},
311 {APIPermission::kFileSystemDirectory, "fileSystem.directory", 305 {APIPermission::kFileSystemDirectory, "fileSystem.directory",
312 APIPermissionInfo::kFlagNone, 306 APIPermissionInfo::kFlagNone,
313 IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_DIRECTORY, 307 IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_DIRECTORY,
314 PermissionMessage::kFileSystemDirectory}, 308 PermissionMessage::kFileSystemDirectory},
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 375 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
382 kOldOverrideEscFullscreenPermission)); 376 kOldOverrideEscFullscreenPermission));
383 aliases.push_back(PermissionsProvider::AliasInfo( 377 aliases.push_back(PermissionsProvider::AliasInfo(
384 "unlimitedStorage", kOldUnlimitedStoragePermission)); 378 "unlimitedStorage", kOldUnlimitedStoragePermission));
385 aliases.push_back(PermissionsProvider::AliasInfo( 379 aliases.push_back(PermissionsProvider::AliasInfo(
386 "tabs", kWindowsPermission)); 380 "tabs", kWindowsPermission));
387 return aliases; 381 return aliases;
388 } 382 }
389 383
390 } // namespace extensions 384 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698