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

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

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.h
diff --git a/chrome/browser/extensions/extension_permissions_api_constants.h b/chrome/browser/extensions/extension_permissions_api_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9377cc8b232bcac70681c64d381c8def397dfc2
--- /dev/null
+++ b/chrome/browser/extensions/extension_permissions_api_constants.h
@@ -0,0 +1,28 @@
+// 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.
+
+// Constants used for the Tabs API and the Windows API.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_
+#pragma once
+
+namespace extension_permissions_module_constants {
+
+// Keys used in serializing permissions data and events.
+extern const char kApisKey[];
+
+// Error messages.
+extern const char kCantRemoveRequiredPermissionsError[];
+extern const char kNotInOptionalPermissionsError[];
+extern const char kNotWhiteListedError[];
+extern const char kUnknownPermissionError[];
+
+// Event names.
+extern const char kOnAdded[];
+extern const char kOnRemoved[];
+
+}; // namespace extension_permissions_module_constants
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698