| 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Creates a new module for a NaCl instance that will be using the IPC proxy. | 112 // Creates a new module for a NaCl instance that will be using the IPC proxy. |
| 113 // We can't use the existing module, or new instances of the plugin can't | 113 // We can't use the existing module, or new instances of the plugin can't |
| 114 // be created. | 114 // be created. |
| 115 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); | 115 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); |
| 116 | 116 |
| 117 // Initializes the NaCl module for the out of process proxy. InitAsProxied | 117 // Initializes the NaCl module for the out of process proxy. InitAsProxied |
| 118 // must be called before calling InitAsProxiedNaCl. Returns true on success. | 118 // must be called before calling InitAsProxiedNaCl. Returns true on success. |
| 119 bool InitAsProxiedNaCl(PluginInstance* instance); | 119 bool InitAsProxiedNaCl(PluginInstance* instance); |
| 120 | 120 |
| 121 bool IsProxied() const; |
| 122 |
| 121 static const PPB_Core* GetCore(); | 123 static const PPB_Core* GetCore(); |
| 122 | 124 |
| 123 // Returns a pointer to the local GetInterface function for retrieving | 125 // Returns a pointer to the local GetInterface function for retrieving |
| 124 // PPB interfaces. | 126 // PPB interfaces. |
| 125 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 127 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
| 126 | 128 |
| 127 // Returns whether an interface is supported. This method can be called from | 129 // Returns whether an interface is supported. This method can be called from |
| 128 // the browser process and used for interface matching before plugin | 130 // the browser process and used for interface matching before plugin |
| 129 // registration. | 131 // registration. |
| 130 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager | 132 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 245 |
| 244 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 246 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
| 245 | 247 |
| 246 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 248 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
| 247 }; | 249 }; |
| 248 | 250 |
| 249 } // namespace ppapi | 251 } // namespace ppapi |
| 250 } // namespace webkit | 252 } // namespace webkit |
| 251 | 253 |
| 252 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 254 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| OLD | NEW |