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

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

Issue 12463015: Enable <adview> tag for packaged apps. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Merge fix. 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
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 21 matching lines...) Expand all
32 // There is one instance per permission per loaded extension. 32 // There is one instance per permission per loaded extension.
33 class APIPermission { 33 class APIPermission {
34 public: 34 public:
35 enum ID { 35 enum ID {
36 // Error codes. 36 // Error codes.
37 kInvalid = -2, 37 kInvalid = -2,
38 kUnknown = -1, 38 kUnknown = -1,
39 39
40 // Real permissions. 40 // Real permissions.
41 kActiveTab, 41 kActiveTab,
42 kAdView,
42 kAlarms, 43 kAlarms,
43 kAppCurrentWindowInternal, 44 kAppCurrentWindowInternal,
44 kAppRuntime, 45 kAppRuntime,
45 kAppWindow, 46 kAppWindow,
46 kAudioCapture, 47 kAudioCapture,
47 kAutoTestPrivate, 48 kAutoTestPrivate,
48 kBackground, 49 kBackground,
49 kBluetooth, 50 kBluetooth,
50 kBluetoothDevice, 51 kBluetoothDevice,
51 kBookmark, 52 kBookmark,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 const char* const name_; 294 const char* const name_;
294 const int flags_; 295 const int flags_;
295 const int l10n_message_id_; 296 const int l10n_message_id_;
296 const PermissionMessage::ID message_id_; 297 const PermissionMessage::ID message_id_;
297 const APIPermissionConstructor api_permission_constructor_; 298 const APIPermissionConstructor api_permission_constructor_;
298 }; 299 };
299 300
300 } // namespace extensions 301 } // namespace extensions
301 302
302 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ 303 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/permissions/api_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698