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

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

Issue 1128203005: Add the IDL and stub implementation for the chrome.passwordsPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/lint. Created 5 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 "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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 IDS_EXTENSION_PROMPT_WARNING_SEARCH_ENGINES_PRIVATE, 350 IDS_EXTENSION_PROMPT_WARNING_SEARCH_ENGINES_PRIVATE,
351 PermissionMessage::kSearchEnginesPrivate}, 351 PermissionMessage::kSearchEnginesPrivate},
352 {APIPermission::kAutofillPrivate, 352 {APIPermission::kAutofillPrivate,
353 "autofillPrivate", 353 "autofillPrivate",
354 APIPermissionInfo::kFlagCannotBeOptional, 354 APIPermissionInfo::kFlagCannotBeOptional,
355 IDS_EXTENSION_PROMPT_WARNING_AUTOFILL_PRIVATE, 355 IDS_EXTENSION_PROMPT_WARNING_AUTOFILL_PRIVATE,
356 PermissionMessage::kAutofillPrivate}, 356 PermissionMessage::kAutofillPrivate},
357 {APIPermission::kWebstoreWidgetPrivate, 357 {APIPermission::kWebstoreWidgetPrivate,
358 "webstoreWidgetPrivate", 358 "webstoreWidgetPrivate",
359 APIPermissionInfo::kFlagCannotBeOptional}, 359 APIPermissionInfo::kFlagCannotBeOptional},
360 {APIPermission::kPasswordsPrivate,
361 "passwordsPrivate",
362 APIPermissionInfo::kFlagCannotBeOptional,
363 IDS_EXTENSION_PROMPT_WARNING_PASSWORDS_PRIVATE,
364 PermissionMessage::kPasswordsPrivate},
360 365
361 // Full url access permissions. 366 // Full url access permissions.
362 {APIPermission::kDebugger, 367 {APIPermission::kDebugger,
363 "debugger", 368 "debugger",
364 APIPermissionInfo::kFlagImpliesFullURLAccess | 369 APIPermissionInfo::kFlagImpliesFullURLAccess |
365 APIPermissionInfo::kFlagCannotBeOptional, 370 APIPermissionInfo::kFlagCannotBeOptional,
366 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 371 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
367 PermissionMessage::kDebugger}, 372 PermissionMessage::kDebugger},
368 {APIPermission::kDevtools, 373 {APIPermission::kDevtools,
369 "devtools", 374 "devtools",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 471
467 std::vector<PermissionsProvider::AliasInfo> 472 std::vector<PermissionsProvider::AliasInfo>
468 ChromeAPIPermissions::GetAllAliases() const { 473 ChromeAPIPermissions::GetAllAliases() const {
469 // Register aliases. 474 // Register aliases.
470 std::vector<PermissionsProvider::AliasInfo> aliases; 475 std::vector<PermissionsProvider::AliasInfo> aliases;
471 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission)); 476 aliases.push_back(PermissionsProvider::AliasInfo("tabs", kWindowsPermission));
472 return aliases; 477 return aliases;
473 } 478 }
474 479
475 } // namespace extensions 480 } // 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