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

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

Issue 1018643003: Removing chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates to documentation per kalman's comments Created 5 years, 9 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // vary based on the permissions parameters, no message ID or 389 // vary based on the permissions parameters, no message ID or
390 // message text is specified here. The message ID and text used 390 // message text is specified here. The message ID and text used
391 // will be determined at run-time in the 391 // will be determined at run-time in the
392 // |MediaGalleriesPermission| class. 392 // |MediaGalleriesPermission| class.
393 {APIPermission::kMediaGalleries, 393 {APIPermission::kMediaGalleries,
394 "mediaGalleries", 394 "mediaGalleries",
395 APIPermissionInfo::kFlagNone, 395 APIPermissionInfo::kFlagNone,
396 0, 396 0,
397 PermissionMessage::kNone, 397 PermissionMessage::kNone,
398 &CreateAPIPermission<MediaGalleriesPermission>}, 398 &CreateAPIPermission<MediaGalleriesPermission>},
399 {APIPermission::kPushMessaging,
400 "pushMessaging",
401 APIPermissionInfo::kFlagCannotBeOptional},
402 {APIPermission::kPointerLock, "pointerLock"}, 399 {APIPermission::kPointerLock, "pointerLock"},
403 {APIPermission::kCastStreaming, "cast.streaming"}, 400 {APIPermission::kCastStreaming, "cast.streaming"},
404 {APIPermission::kBrowser, "browser"}, 401 {APIPermission::kBrowser, "browser"},
405 {APIPermission::kInterceptAllKeys, 402 {APIPermission::kInterceptAllKeys,
406 "app.window.interceptAllKeys", 403 "app.window.interceptAllKeys",
407 APIPermissionInfo::kFlagNone, 404 APIPermissionInfo::kFlagNone,
408 IDS_EXTENSION_PROMPT_WARNING_INTERCEPT_ALL_KEYS, 405 IDS_EXTENSION_PROMPT_WARNING_INTERCEPT_ALL_KEYS,
409 PermissionMessage::kInterceptAllKeys}, 406 PermissionMessage::kInterceptAllKeys},
410 407
411 // Settings override permissions. 408 // Settings override permissions.
(...skipping 26 matching lines...) Expand all
438 435
439 std::vector<PermissionsProvider::AliasInfo> 436 std::vector<PermissionsProvider::AliasInfo>
440 ChromeAPIPermissions::GetAllAliases() const { 437 ChromeAPIPermissions::GetAllAliases() const {
441 // Register aliases. 438 // Register aliases.
442 std::vector<PermissionsProvider::AliasInfo> aliases; 439 std::vector<PermissionsProvider::AliasInfo> aliases;
443 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 440 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
444 return aliases; 441 return aliases;
445 } 442 }
446 443
447 } // namespace extensions 444 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698