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

Side by Side Diff: chrome/common/extensions/permissions/api_permission.h

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another merge before retrying commit. Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "chrome/common/extensions/permissions/permission_message.h" 10 #include "chrome/common/extensions/permissions/permission_message.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class PermissionsInfo; 14 class PermissionsInfo;
15 15
16 // The APIPermission is an immutable class that describes a single 16 // The APIPermission is an immutable class that describes a single
17 // named permission (API permission). 17 // named permission (API permission).
18 class APIPermission { 18 class APIPermission {
19 public: 19 public:
20 enum ID { 20 enum ID {
21 // Error codes. 21 // Error codes.
22 kInvalid = -2, 22 kInvalid = -2,
23 kUnknown = -1, 23 kUnknown = -1,
24 24
25 // Real permissions. 25 // Real permissions.
26 kActiveTab, 26 kActiveTab,
27 kAlarms, 27 kAlarms,
28 kAppNotifications, 28 kAppNotifications,
29 kAppRuntime,
29 kAppWindow, 30 kAppWindow,
30 kAudioCapture, 31 kAudioCapture,
31 kBackground, 32 kBackground,
32 kBookmark, 33 kBookmark,
33 kBrowserTag, 34 kBrowserTag,
34 kBrowsingData, 35 kBrowsingData,
35 kChromeosInfoPrivate, 36 kChromeosInfoPrivate,
36 kClipboardRead, 37 kClipboardRead,
37 kClipboardWrite, 38 kClipboardWrite,
38 kCloudPrintPrivate, 39 kCloudPrintPrivate,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 int flags_; 160 int flags_;
160 int l10n_message_id_; 161 int l10n_message_id_;
161 PermissionMessage::ID message_id_; 162 PermissionMessage::ID message_id_;
162 }; 163 };
163 164
164 typedef std::set<APIPermission::ID> APIPermissionSet; 165 typedef std::set<APIPermission::ID> APIPermissionSet;
165 166
166 } // namespace extensions 167 } // namespace extensions
167 168
168 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ 169 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/permissions/api_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698