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

Side by Side Diff: chrome/browser/extensions/extension_permissions_api_constants.cc

Issue 7508029: Add origin permissions to the extension permissions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dcheck Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/extension_permissions_api_constants.h" 5 #include "chrome/browser/extensions/extension_permissions_api_constants.h"
6 6
7 namespace extension_permissions_module_constants { 7 namespace extension_permissions_module_constants {
8 8
9 const char kApisKey[] = "permissions"; 9 const char kApisKey[] = "permissions";
10 const char kOriginsKey[] = "origins";
10 11
11 const char kCantRemoveRequiredPermissionsError[] = 12 const char kCantRemoveRequiredPermissionsError[] =
12 "You cannot remove required permissions."; 13 "You cannot remove required permissions.";
13 const char kNotInOptionalPermissionsError[] = 14 const char kNotInOptionalPermissionsError[] =
14 "Optional permissions must be listed in extension manifest."; 15 "Optional permissions must be listed in extension manifest.";
15 const char kNotWhitelistedError[] = 16 const char kNotWhitelistedError[] =
16 "The optional permissions API does not support '%s'."; 17 "The optional permissions API does not support '*'.";
17 const char kUnknownPermissionError[] = 18 const char kUnknownPermissionError[] =
18 "'%s' is not a recognized permission."; 19 "'*' is not a recognized permission.";
20 const char kInvalidOrigin[] =
21 "Invalid value for origin pattern *: *";
19 22
20 const char kOnAdded[] = "experimental.permissions.onAdded"; 23 const char kOnAdded[] = "experimental.permissions.onAdded";
21 const char kOnRemoved[] = "experimental.permissions.onRemoved"; 24 const char kOnRemoved[] = "experimental.permissions.onRemoved";
22 25
23 }; // namespace extension_permissions_module_constants 26 }; // namespace extension_permissions_module_constants
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_permissions_api_constants.h ('k') | chrome/browser/extensions/permissions_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698