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

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

Issue 232183002: Chromium side changes to add the ledger API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 7 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 {APIPermission::kFontSettings, "fontSettings", 105 {APIPermission::kFontSettings, "fontSettings",
106 APIPermissionInfo::kFlagCannotBeOptional}, 106 APIPermissionInfo::kFlagCannotBeOptional},
107 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone, 107 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone,
108 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, 108 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY,
109 PermissionMessage::kBrowsingHistory}, 109 PermissionMessage::kBrowsingHistory},
110 {APIPermission::kIdltest, "idltest"}, 110 {APIPermission::kIdltest, "idltest"},
111 {APIPermission::kIdle, "idle"}, 111 {APIPermission::kIdle, "idle"},
112 {APIPermission::kInfobars, "infobars"}, 112 {APIPermission::kInfobars, "infobars"},
113 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone, 113 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone,
114 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput}, 114 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput},
115 {APIPermission::kLedger, "ledger"},
115 {APIPermission::kLocation, "location", 116 {APIPermission::kLocation, "location",
116 APIPermissionInfo::kFlagCannotBeOptional, 117 APIPermissionInfo::kFlagCannotBeOptional,
117 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 118 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
118 PermissionMessage::kGeolocation}, 119 PermissionMessage::kGeolocation},
119 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone, 120 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone,
120 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement}, 121 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement},
121 {APIPermission::kNativeMessaging, "nativeMessaging", 122 {APIPermission::kNativeMessaging, "nativeMessaging",
122 APIPermissionInfo::kFlagNone, 123 APIPermissionInfo::kFlagNone,
123 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, 124 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING,
124 PermissionMessage::kNativeMessaging}, 125 PermissionMessage::kNativeMessaging},
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 368 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
368 kOldOverrideEscFullscreenPermission)); 369 kOldOverrideEscFullscreenPermission));
369 aliases.push_back(PermissionsProvider::AliasInfo( 370 aliases.push_back(PermissionsProvider::AliasInfo(
370 "unlimitedStorage", kOldUnlimitedStoragePermission)); 371 "unlimitedStorage", kOldUnlimitedStoragePermission));
371 aliases.push_back(PermissionsProvider::AliasInfo( 372 aliases.push_back(PermissionsProvider::AliasInfo(
372 "tabs", kWindowsPermission)); 373 "tabs", kWindowsPermission));
373 return aliases; 374 return aliases;
374 } 375 }
375 376
376 } // namespace extensions 377 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698