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

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

Issue 846023004: Removal of chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // vary based on the permissions parameters, no message ID or 394 // vary based on the permissions parameters, no message ID or
395 // message text is specified here. The message ID and text used 395 // message text is specified here. The message ID and text used
396 // will be determined at run-time in the 396 // will be determined at run-time in the
397 // |MediaGalleriesPermission| class. 397 // |MediaGalleriesPermission| class.
398 {APIPermission::kMediaGalleries, 398 {APIPermission::kMediaGalleries,
399 "mediaGalleries", 399 "mediaGalleries",
400 APIPermissionInfo::kFlagNone, 400 APIPermissionInfo::kFlagNone,
401 0, 401 0,
402 PermissionMessage::kNone, 402 PermissionMessage::kNone,
403 &CreateAPIPermission<MediaGalleriesPermission>}, 403 &CreateAPIPermission<MediaGalleriesPermission>},
404 {APIPermission::kPushMessaging,
405 "pushMessaging",
406 APIPermissionInfo::kFlagCannotBeOptional},
407 {APIPermission::kPointerLock, "pointerLock"}, 404 {APIPermission::kPointerLock, "pointerLock"},
408 {APIPermission::kPrinterProvider, "printerProvider"}, 405 {APIPermission::kPrinterProvider, "printerProvider"},
409 {APIPermission::kCastStreaming, "cast.streaming"}, 406 {APIPermission::kCastStreaming, "cast.streaming"},
410 {APIPermission::kBrowser, "browser"}, 407 {APIPermission::kBrowser, "browser"},
411 {APIPermission::kInterceptAllKeys, 408 {APIPermission::kInterceptAllKeys,
412 "app.window.interceptAllKeys", 409 "app.window.interceptAllKeys",
413 APIPermissionInfo::kFlagNone, 410 APIPermissionInfo::kFlagNone,
414 IDS_EXTENSION_PROMPT_WARNING_INTERCEPT_ALL_KEYS, 411 IDS_EXTENSION_PROMPT_WARNING_INTERCEPT_ALL_KEYS,
415 PermissionMessage::kInterceptAllKeys}, 412 PermissionMessage::kInterceptAllKeys},
416 413
(...skipping 27 matching lines...) Expand all
444 441
445 std::vector<PermissionsProvider::AliasInfo> 442 std::vector<PermissionsProvider::AliasInfo>
446 ChromeAPIPermissions::GetAllAliases() const { 443 ChromeAPIPermissions::GetAllAliases() const {
447 // Register aliases. 444 // Register aliases.
448 std::vector<PermissionsProvider::AliasInfo> aliases; 445 std::vector<PermissionsProvider::AliasInfo> aliases;
449 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 446 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
450 return aliases; 447 return aliases;
451 } 448 }
452 449
453 } // namespace extensions 450 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698