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

Side by Side Diff: ppapi/shared_impl/ppapi_permissions.h

Issue 112343005: Pepper: Finish support for dev channel APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 7 years 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 PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_
6 #define PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ 6 #define PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/shared_impl/ppapi_shared_export.h" 9 #include "ppapi/shared_impl/ppapi_shared_export.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // Allows ability to bypass user-gesture checks for showing things like 23 // Allows ability to bypass user-gesture checks for showing things like
24 // file select dialogs. 24 // file select dialogs.
25 PERMISSION_BYPASS_USER_GESTURE = 1 << 2, 25 PERMISSION_BYPASS_USER_GESTURE = 1 << 2,
26 26
27 // Testing-only interfaces. 27 // Testing-only interfaces.
28 PERMISSION_TESTING = 1 << 3, 28 PERMISSION_TESTING = 1 << 3,
29 29
30 // Flash-related interfaces. 30 // Flash-related interfaces.
31 PERMISSION_FLASH = 1 << 4, 31 PERMISSION_FLASH = 1 << 4,
32 32
33 // Dev-channel interfaces.
dmichael (off chromium) 2013/12/18 22:40:50 A more verbose description contrasting with "DEV"
34 PERMISSION_DEV_CHANNEL = 1 << 5,
35
33 // NOTE: If you add stuff be sure to update PERMISSION_ALL_BITS. 36 // NOTE: If you add stuff be sure to update PERMISSION_ALL_BITS.
34 37
35 // Meta permission for initializing plugins registered on the command line 38 // Meta permission for initializing plugins registered on the command line
36 // that get all permissions. 39 // that get all permissions.
37 PERMISSION_ALL_BITS = PERMISSION_DEV | 40 PERMISSION_ALL_BITS = PERMISSION_DEV |
38 PERMISSION_PRIVATE | 41 PERMISSION_PRIVATE |
39 PERMISSION_BYPASS_USER_GESTURE | 42 PERMISSION_BYPASS_USER_GESTURE |
40 PERMISSION_TESTING | 43 PERMISSION_TESTING |
41 PERMISSION_FLASH 44 PERMISSION_FLASH |
45 PERMISSION_DEV_CHANNEL
42 }; 46 };
43 47
44 class PPAPI_SHARED_EXPORT PpapiPermissions { 48 class PPAPI_SHARED_EXPORT PpapiPermissions {
45 public: 49 public:
46 // Initializes the permissions struct with no permissions. 50 // Initializes the permissions struct with no permissions.
47 PpapiPermissions(); 51 PpapiPermissions();
48 52
49 // Initializes with the given permissions bits set. 53 // Initializes with the given permissions bits set.
50 explicit PpapiPermissions(uint32 perms); 54 explicit PpapiPermissions(uint32 perms);
51 55
(...skipping 15 matching lines...) Expand all
67 71
68 private: 72 private:
69 uint32 permissions_; 73 uint32 permissions_;
70 74
71 // Note: Copy & assign supported. 75 // Note: Copy & assign supported.
72 }; 76 };
73 77
74 } // namespace ppapi 78 } // namespace ppapi
75 79
76 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ 80 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698