| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Initializes this module for the given out of process proxy. This takes | 104 // Initializes this module for the given out of process proxy. This takes |
| 105 // ownership of the given pointer, even in the failure case. | 105 // ownership of the given pointer, even in the failure case. |
| 106 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy); | 106 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy); |
| 107 | 107 |
| 108 // Creates a new module for a NaCl instance that will be using the IPC proxy. | 108 // Creates a new module for a NaCl instance that will be using the IPC proxy. |
| 109 // We can't use the existing module, or new instances of the plugin can't | 109 // We can't use the existing module, or new instances of the plugin can't |
| 110 // be created. | 110 // be created. |
| 111 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); | 111 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); |
| 112 | 112 |
| 113 // Initializes the NaCl module for the given out of process proxy. This takes | 113 // Initializes the NaCl module for the out of process proxy. InitAsProxied |
| 114 // ownership of the given pointer, even in the failure case. | 114 // must be called before calling InitAsProxiedNaCl. |
| 115 void InitAsProxiedNaCl( | 115 void InitAsProxiedNaCl(PluginInstance* instance); |
| 116 scoped_ptr<PluginDelegate::OutOfProcessProxy> out_of_process_proxy, | |
| 117 PP_Instance instance); | |
| 118 | 116 |
| 119 static const PPB_Core* GetCore(); | 117 static const PPB_Core* GetCore(); |
| 120 | 118 |
| 121 // Returns a pointer to the local GetInterface function for retrieving | 119 // Returns a pointer to the local GetInterface function for retrieving |
| 122 // PPB interfaces. | 120 // PPB interfaces. |
| 123 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 121 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
| 124 | 122 |
| 125 // Returns whether an interface is supported. This method can be called from | 123 // Returns whether an interface is supported. This method can be called from |
| 126 // the browser process and used for interface matching before plugin | 124 // the browser process and used for interface matching before plugin |
| 127 // registration. | 125 // registration. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 237 |
| 240 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 238 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
| 241 | 239 |
| 242 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 240 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
| 243 }; | 241 }; |
| 244 | 242 |
| 245 } // namespace ppapi | 243 } // namespace ppapi |
| 246 } // namespace webkit | 244 } // namespace webkit |
| 247 | 245 |
| 248 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 246 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| OLD | NEW |