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

Unified Diff: chrome/browser/extensions/extension_permissions_api_constants.cc

Issue 7432006: Add an experimental permissions API for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_permissions_api_constants.cc
diff --git a/chrome/browser/extensions/extension_permissions_api_constants.cc b/chrome/browser/extensions/extension_permissions_api_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c22686c84f837359a62ddaf2e63794fa7ffe4e97
--- /dev/null
+++ b/chrome/browser/extensions/extension_permissions_api_constants.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/extension_permissions_api_constants.h"
+
+namespace extension_permissions_module_constants {
+
+const char kApisKey[] = "apis";
Mihai Parparita -not on Chrome 2011/07/20 22:03:43 Not sure "apis" is the best name, since it's not a
jstritar 2011/07/22 19:21:55 Changed this to "permissions". I'll update the ter
+
+const char kCantRemoveRequiredPermissionsError[] =
+ "You cannot remove required permissions.";
+const char kNotInOptionalPermissionsError[] =
+ "Optional permissions must be listed in extension manifest.";
+const char kNotWhiteListedError[] =
+ "The optional permissions API does not support '%s'.";
+const char kUnknownPermissionError[] =
+ "'%s' is not a recognized permission.";
+
+const char kOnAdded[] = "permissions.onAdded";
+const char kOnRemoved[] = "permissions.onRemoved";
+
+}; // namespace extension_permissions_module_constants

Powered by Google App Engine
This is Rietveld 408576698