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

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

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 // Constants used for the Tabs API and the Windows API. 5 // Constants used for the Tabs API and the Windows API.
6 6
7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_
8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_
9 #pragma once 9 #pragma once
10 10
11 namespace extension_permissions_module_constants { 11 namespace extension_permissions_module_constants {
12 12
13 // Keys used in serializing permissions data and events. 13 // Keys used in serializing permissions data and events.
14 extern const char kApisKey[]; 14 extern const char kApisKey[];
15 extern const char kOriginsKey[];
15 16
16 // Error messages. 17 // Error messages.
17 extern const char kCantRemoveRequiredPermissionsError[]; 18 extern const char kCantRemoveRequiredPermissionsError[];
18 extern const char kNotInOptionalPermissionsError[]; 19 extern const char kNotInOptionalPermissionsError[];
19 extern const char kNotWhitelistedError[]; 20 extern const char kNotWhitelistedError[];
20 extern const char kUnknownPermissionError[]; 21 extern const char kUnknownPermissionError[];
22 extern const char kInvalidOrigin[];
21 23
22 // Event names. 24 // Event names.
23 extern const char kOnAdded[]; 25 extern const char kOnAdded[];
24 extern const char kOnRemoved[]; 26 extern const char kOnRemoved[];
25 27
26 }; // namespace extension_permissions_module_constants 28 }; // namespace extension_permissions_module_constants
27 29
28 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_ 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698