OLD | NEW |
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_PROXY_INTERFACE_LIST_H_ | 5 #ifndef PPAPI_PROXY_INTERFACE_LIST_H_ |
6 #define PPAPI_PROXY_INTERFACE_LIST_H_ | 6 #define PPAPI_PROXY_INTERFACE_LIST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 // this will be "no permissions", which will give only access to public | 28 // this will be "no permissions", which will give only access to public |
29 // stable interfaces via GetInterface. | 29 // stable interfaces via GetInterface. |
30 // | 30 // |
31 // IMPORTANT: This is not a security boundary. Malicious plugins can bypass | 31 // IMPORTANT: This is not a security boundary. Malicious plugins can bypass |
32 // this check since they run in the same address space as this code in the | 32 // this check since they run in the same address space as this code in the |
33 // plugin process. A real security check is required for all IPC messages. | 33 // plugin process. A real security check is required for all IPC messages. |
34 // This check just allows us to return NULL for interfaces you "shouldn't" be | 34 // This check just allows us to return NULL for interfaces you "shouldn't" be |
35 // using to keep honest plugins honest. | 35 // using to keep honest plugins honest. |
36 static PPAPI_PROXY_EXPORT void SetProcessGlobalPermissions( | 36 static PPAPI_PROXY_EXPORT void SetProcessGlobalPermissions( |
37 const PpapiPermissions& permissions); | 37 const PpapiPermissions& permissions); |
| 38 static PPAPI_PROXY_EXPORT void SetSupportsDevChannel( |
| 39 bool supports_dev_channel); |
38 | 40 |
39 // Looks up the ID for the given interface name. Returns API_ID_NONE if | 41 // Looks up the ID for the given interface name. Returns API_ID_NONE if |
40 // the interface string is not found. | 42 // the interface string is not found. |
41 ApiID GetIDForPPBInterface(const std::string& name) const; | 43 ApiID GetIDForPPBInterface(const std::string& name) const; |
42 ApiID GetIDForPPPInterface(const std::string& name) const; | 44 ApiID GetIDForPPPInterface(const std::string& name) const; |
43 | 45 |
44 // Looks up the factory function for the given ID. Returns NULL if not | 46 // Looks up the factory function for the given ID. Returns NULL if not |
45 // supported. | 47 // supported. |
46 InterfaceProxy::Factory GetFactoryForID(ApiID id) const; | 48 InterfaceProxy::Factory GetFactoryForID(ApiID id) const; |
47 | 49 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT]; | 97 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT]; |
96 | 98 |
97 DISALLOW_COPY_AND_ASSIGN(InterfaceList); | 99 DISALLOW_COPY_AND_ASSIGN(InterfaceList); |
98 }; | 100 }; |
99 | 101 |
100 } // namespace proxy | 102 } // namespace proxy |
101 } // namespace ppapi | 103 } // namespace ppapi |
102 | 104 |
103 #endif // PPAPI_PROXY_INTERFACE_LIST_H_ | 105 #endif // PPAPI_PROXY_INTERFACE_LIST_H_ |
104 | 106 |
OLD | NEW |