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

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

Issue 378783002: Initial implementation of the <extensionoptions> GuestView tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 "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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PermissionMessage::kDownloadsOpen}, 57 PermissionMessage::kDownloadsOpen},
58 {APIPermission::kDownloadsShelf, "downloads.shelf"}, 58 {APIPermission::kDownloadsShelf, "downloads.shelf"},
59 {APIPermission::kEasyUnlockPrivate, "easyUnlockPrivate"}, 59 {APIPermission::kEasyUnlockPrivate, "easyUnlockPrivate"},
60 {APIPermission::kIdentity, "identity"}, 60 {APIPermission::kIdentity, "identity"},
61 {APIPermission::kIdentityEmail, "identity.email", 61 {APIPermission::kIdentityEmail, "identity.email",
62 APIPermissionInfo::kFlagNone, 62 APIPermissionInfo::kFlagNone,
63 IDS_EXTENSION_PROMPT_WARNING_IDENTITY_EMAIL, 63 IDS_EXTENSION_PROMPT_WARNING_IDENTITY_EMAIL,
64 PermissionMessage::kIdentityEmail}, 64 PermissionMessage::kIdentityEmail},
65 {APIPermission::kExperimental, "experimental", 65 {APIPermission::kExperimental, "experimental",
66 APIPermissionInfo::kFlagCannotBeOptional}, 66 APIPermissionInfo::kFlagCannotBeOptional},
67 {APIPermission::kEmbeddedExtensionOptions, "embeddedExtensionOptions",
68 APIPermissionInfo::kFlagCannotBeOptional},
67 // NOTE(kalman): this is provided by a manifest property but needs to 69 // NOTE(kalman): this is provided by a manifest property but needs to
68 // appear in the install permission dialogue, so we need a fake 70 // appear in the install permission dialogue, so we need a fake
69 // permission for it. See http://crbug.com/247857. 71 // permission for it. See http://crbug.com/247857.
70 {APIPermission::kWebConnectable, "webConnectable", 72 {APIPermission::kWebConnectable, "webConnectable",
71 APIPermissionInfo::kFlagCannotBeOptional | 73 APIPermissionInfo::kFlagCannotBeOptional |
72 APIPermissionInfo::kFlagInternal, 74 APIPermissionInfo::kFlagInternal,
73 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE, 75 IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE,
74 PermissionMessage::kWebConnectable}, 76 PermissionMessage::kWebConnectable},
75 {APIPermission::kGeolocation, "geolocation", 77 {APIPermission::kGeolocation, "geolocation",
76 APIPermissionInfo::kFlagCannotBeOptional, 78 APIPermissionInfo::kFlagCannotBeOptional,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 376 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
375 kOldOverrideEscFullscreenPermission)); 377 kOldOverrideEscFullscreenPermission));
376 aliases.push_back(PermissionsProvider::AliasInfo( 378 aliases.push_back(PermissionsProvider::AliasInfo(
377 "unlimitedStorage", kOldUnlimitedStoragePermission)); 379 "unlimitedStorage", kOldUnlimitedStoragePermission));
378 aliases.push_back(PermissionsProvider::AliasInfo( 380 aliases.push_back(PermissionsProvider::AliasInfo(
379 "tabs", kWindowsPermission)); 381 "tabs", kWindowsPermission));
380 return aliases; 382 return aliases;
381 } 383 }
382 384
383 } // namespace extensions 385 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698