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

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

Issue 12300041: Add nativeMessaging extension permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 kHistory, 80 kHistory,
81 kIdle, 81 kIdle,
82 kInput, 82 kInput,
83 kInputMethodPrivate, 83 kInputMethodPrivate,
84 kManagedModePrivate, 84 kManagedModePrivate,
85 kManagement, 85 kManagement,
86 kMediaGalleries, 86 kMediaGalleries,
87 kMediaGalleriesPrivate, 87 kMediaGalleriesPrivate,
88 kMediaPlayerPrivate, 88 kMediaPlayerPrivate,
89 kMetricsPrivate, 89 kMetricsPrivate,
90 kNativeMessaging,
90 kNetworkingPrivate, 91 kNetworkingPrivate,
91 kNotification, 92 kNotification,
92 kPageCapture, 93 kPageCapture,
93 kPointerLock, 94 kPointerLock,
94 kPlugin, 95 kPlugin,
95 kPrivacy, 96 kPrivacy,
96 kProxy, 97 kProxy,
97 kPushMessaging, 98 kPushMessaging,
98 kRtcPrivate, 99 kRtcPrivate,
99 kScreensaver, 100 kScreensaver,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 211
211 // Indicates if the permission implies full access (native code). 212 // Indicates if the permission implies full access (native code).
212 kFlagImpliesFullAccess = 1 << 0, 213 kFlagImpliesFullAccess = 1 << 0,
213 214
214 // Indicates if the permission implies full URL access. 215 // Indicates if the permission implies full URL access.
215 kFlagImpliesFullURLAccess = 1 << 1, 216 kFlagImpliesFullURLAccess = 1 << 1,
216 217
217 // Indicates that extensions cannot specify the permission as optional. 218 // Indicates that extensions cannot specify the permission as optional.
218 kFlagCannotBeOptional = 1 << 3, 219 kFlagCannotBeOptional = 1 << 3,
219 220
220 // Indicates that extensions cannot specify the permission as optional. 221 // Indicates that extensions must specify the permission as optional.
221 kFlagMustBeOptional = 1 << 4 222 kFlagMustBeOptional = 1 << 4
222 }; 223 };
223 224
224 typedef APIPermission* (*APIPermissionConstructor)(const APIPermissionInfo*); 225 typedef APIPermission* (*APIPermissionConstructor)(const APIPermissionInfo*);
225 226
226 typedef std::set<APIPermission::ID> IDSet; 227 typedef std::set<APIPermission::ID> IDSet;
227 228
228 ~APIPermissionInfo(); 229 ~APIPermissionInfo();
229 230
230 // Creates a APIPermission instance. 231 // Creates a APIPermission instance.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 const char* const name_; 291 const char* const name_;
291 const int flags_; 292 const int flags_;
292 const int l10n_message_id_; 293 const int l10n_message_id_;
293 const PermissionMessage::ID message_id_; 294 const PermissionMessage::ID message_id_;
294 const APIPermissionConstructor api_permission_constructor_; 295 const APIPermissionConstructor api_permission_constructor_;
295 }; 296 };
296 297
297 } // namespace extensions 298 } // namespace extensions
298 299
299 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ 300 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698