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

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

Issue 1099313003: Add the IDL and stub implementation for the chrome.autofillPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, and added credit card name as a CreditCardEntry field. Created 5 years, 8 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 {APIPermission::kSettingsPrivate, 339 {APIPermission::kSettingsPrivate,
340 "settingsPrivate", 340 "settingsPrivate",
341 APIPermissionInfo::kFlagCannotBeOptional, 341 APIPermissionInfo::kFlagCannotBeOptional,
342 IDS_EXTENSION_PROMPT_WARNING_SETTINGS_PRIVATE, 342 IDS_EXTENSION_PROMPT_WARNING_SETTINGS_PRIVATE,
343 PermissionMessage::kSettingsPrivate}, 343 PermissionMessage::kSettingsPrivate},
344 {APIPermission::kSearchEnginesPrivate, 344 {APIPermission::kSearchEnginesPrivate,
345 "searchEnginesPrivate", 345 "searchEnginesPrivate",
346 APIPermissionInfo::kFlagCannotBeOptional, 346 APIPermissionInfo::kFlagCannotBeOptional,
347 IDS_EXTENSION_PROMPT_WARNING_SEARCH_ENGINES_PRIVATE, 347 IDS_EXTENSION_PROMPT_WARNING_SEARCH_ENGINES_PRIVATE,
348 PermissionMessage::kSearchEnginesPrivate}, 348 PermissionMessage::kSearchEnginesPrivate},
349 {APIPermission::kAutofillPrivate,
350 "autofillPrivate",
351 APIPermissionInfo::kFlagCannotBeOptional,
352 IDS_EXTENSION_PROMPT_WARNING_AUTOFILL_PRIVATE,
353 PermissionMessage::kAutofillPrivate},
349 354
350 // Full url access permissions. 355 // Full url access permissions.
351 {APIPermission::kDebugger, 356 {APIPermission::kDebugger,
352 "debugger", 357 "debugger",
353 APIPermissionInfo::kFlagImpliesFullURLAccess | 358 APIPermissionInfo::kFlagImpliesFullURLAccess |
354 APIPermissionInfo::kFlagCannotBeOptional, 359 APIPermissionInfo::kFlagCannotBeOptional,
355 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 360 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
356 PermissionMessage::kDebugger}, 361 PermissionMessage::kDebugger},
357 {APIPermission::kDevtools, 362 {APIPermission::kDevtools,
358 "devtools", 363 "devtools",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 460
456 std::vector<PermissionsProvider::AliasInfo> 461 std::vector<PermissionsProvider::AliasInfo>
457 ChromeAPIPermissions::GetAllAliases() const { 462 ChromeAPIPermissions::GetAllAliases() const {
458 // Register aliases. 463 // Register aliases.
459 std::vector<PermissionsProvider::AliasInfo> aliases; 464 std::vector<PermissionsProvider::AliasInfo> aliases;
460 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 465 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
461 return aliases; 466 return aliases;
462 } 467 }
463 468
464 } // namespace extensions 469 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/common/extensions/permissions/chrome_permission_message_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698