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

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: added notification getter to permission_set_unittest 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 | 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 {APIPermission::kHid, "hid", APIPermissionInfo::kFlagNone, 311 {APIPermission::kHid, "hid", APIPermissionInfo::kFlagNone,
312 IDS_EXTENSION_PROMPT_WARNING_HID, PermissionMessage::kHid}, 312 IDS_EXTENSION_PROMPT_WARNING_HID, PermissionMessage::kHid},
313 // Because warning messages for the "mediaGalleries" permission 313 // Because warning messages for the "mediaGalleries" permission
314 // vary based on the permissions parameters, no message ID or 314 // vary based on the permissions parameters, no message ID or
315 // message text is specified here. The message ID and text used 315 // message text is specified here. The message ID and text used
316 // will be determined at run-time in the 316 // will be determined at run-time in the
317 // |MediaGalleriesPermission| class. 317 // |MediaGalleriesPermission| class.
318 {APIPermission::kMediaGalleries, "mediaGalleries", 318 {APIPermission::kMediaGalleries, "mediaGalleries",
319 APIPermissionInfo::kFlagNone, 0, PermissionMessage::kNone, 319 APIPermissionInfo::kFlagNone, 0, PermissionMessage::kNone,
320 &CreateAPIPermission<MediaGalleriesPermission>}, 320 &CreateAPIPermission<MediaGalleriesPermission>},
321 {APIPermission::kNotificationGetter, "notificationGetter"},
321 {APIPermission::kPushMessaging, "pushMessaging", 322 {APIPermission::kPushMessaging, "pushMessaging",
322 APIPermissionInfo::kFlagCannotBeOptional}, 323 APIPermissionInfo::kFlagCannotBeOptional},
323 {APIPermission::kSystemCpu, "system.cpu"}, 324 {APIPermission::kSystemCpu, "system.cpu"},
324 {APIPermission::kSystemMemory, "system.memory"}, 325 {APIPermission::kSystemMemory, "system.memory"},
325 {APIPermission::kSystemNetwork, "system.network"}, 326 {APIPermission::kSystemNetwork, "system.network"},
326 {APIPermission::kSystemDisplay, "system.display"}, 327 {APIPermission::kSystemDisplay, "system.display"},
327 {APIPermission::kSystemStorage, "system.storage"}, 328 {APIPermission::kSystemStorage, "system.storage"},
328 {APIPermission::kPointerLock, "pointerLock"}, 329 {APIPermission::kPointerLock, "pointerLock"},
329 {APIPermission::kFullscreen, "app.window.fullscreen"}, 330 {APIPermission::kFullscreen, "app.window.fullscreen"},
330 {APIPermission::kAudio, "audio"}, 331 {APIPermission::kAudio, "audio"},
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 372 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
372 kOldOverrideEscFullscreenPermission)); 373 kOldOverrideEscFullscreenPermission));
373 aliases.push_back(PermissionsProvider::AliasInfo( 374 aliases.push_back(PermissionsProvider::AliasInfo(
374 "unlimitedStorage", kOldUnlimitedStoragePermission)); 375 "unlimitedStorage", kOldUnlimitedStoragePermission));
375 aliases.push_back(PermissionsProvider::AliasInfo( 376 aliases.push_back(PermissionsProvider::AliasInfo(
376 "tabs", kWindowsPermission)); 377 "tabs", kWindowsPermission));
377 return aliases; 378 return aliases;
378 } 379 }
379 380
380 } // namespace extensions 381 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698