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

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

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS Created 5 years, 10 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
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "copresence", 106 "copresence",
107 APIPermissionInfo::kFlagNone, 107 APIPermissionInfo::kFlagNone,
108 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE, 108 IDS_EXTENSION_PROMPT_WARNING_COPRESENCE,
109 PermissionMessage::kCopresence}, 109 PermissionMessage::kCopresence},
110 {APIPermission::kCopresencePrivate, "copresencePrivate"}, 110 {APIPermission::kCopresencePrivate, "copresencePrivate"},
111 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"}, 111 {APIPermission::kCryptotokenPrivate, "cryptotokenPrivate"},
112 {APIPermission::kDataReductionProxy, 112 {APIPermission::kDataReductionProxy,
113 "dataReductionProxy", 113 "dataReductionProxy",
114 APIPermissionInfo::kFlagImpliesFullURLAccess | 114 APIPermissionInfo::kFlagImpliesFullURLAccess |
115 APIPermissionInfo::kFlagCannotBeOptional}, 115 APIPermissionInfo::kFlagCannotBeOptional},
116 {APIPermission::kDocumentScan,
117 "documentScan",
118 APIPermissionInfo::kFlagNone,
119 IDS_EXTENSION_PROMPT_WARNING_DOCUMENT_SCAN,
120 PermissionMessage::kDocumentScan},
121 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"}, 116 {APIPermission::kEnterprisePlatformKeys, "enterprise.platformKeys"},
122 {APIPermission::kFileBrowserHandler, 117 {APIPermission::kFileBrowserHandler,
123 "fileBrowserHandler", 118 "fileBrowserHandler",
124 APIPermissionInfo::kFlagCannotBeOptional}, 119 APIPermissionInfo::kFlagCannotBeOptional},
125 {APIPermission::kFontSettings, 120 {APIPermission::kFontSettings,
126 "fontSettings", 121 "fontSettings",
127 APIPermissionInfo::kFlagCannotBeOptional}, 122 APIPermissionInfo::kFlagCannotBeOptional},
128 {APIPermission::kHistory, 123 {APIPermission::kHistory,
129 "history", 124 "history",
130 APIPermissionInfo::kFlagNone, 125 APIPermissionInfo::kFlagNone,
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 432
438 std::vector<PermissionsProvider::AliasInfo> 433 std::vector<PermissionsProvider::AliasInfo>
439 ChromeAPIPermissions::GetAllAliases() const { 434 ChromeAPIPermissions::GetAllAliases() const {
440 // Register aliases. 435 // Register aliases.
441 std::vector<PermissionsProvider::AliasInfo> aliases; 436 std::vector<PermissionsProvider::AliasInfo> aliases;
442 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 437 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
443 return aliases; 438 return aliases;
444 } 439 }
445 440
446 } // namespace extensions 441 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698