| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool InitAsInternalPlugin(const EntryPoints& entry_points); | 80 bool InitAsInternalPlugin(const EntryPoints& entry_points); |
| 81 | 81 |
| 82 // Initializes this module using the given library path as the plugin. | 82 // Initializes this module using the given library path as the plugin. |
| 83 // Returns true on success. False means that the plugin can not be used. | 83 // Returns true on success. False means that the plugin can not be used. |
| 84 bool InitAsLibrary(const FilePath& path); | 84 bool InitAsLibrary(const FilePath& path); |
| 85 | 85 |
| 86 // Initializes this module for the given out of process proxy. This takes | 86 // Initializes this module for the given out of process proxy. This takes |
| 87 // ownership of the given pointer, even in the failure case. | 87 // ownership of the given pointer, even in the failure case. |
| 88 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy); | 88 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy); |
| 89 | 89 |
| 90 // Initializes this module for the given NaCl proxy. This takes |
| 91 // ownership of the given pointer, even in the failure case. |
| 92 void InitAsProxiedNaCl( |
| 93 PluginDelegate::OutOfProcessProxy* out_of_process_proxy, |
| 94 PP_Instance instance); |
| 95 |
| 90 static const PPB_Core* GetCore(); | 96 static const PPB_Core* GetCore(); |
| 91 | 97 |
| 92 // Returns a pointer to the local GetInterface function for retrieving | 98 // Returns a pointer to the local GetInterface function for retrieving |
| 93 // PPB interfaces. | 99 // PPB interfaces. |
| 94 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 100 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
| 95 | 101 |
| 96 // Returns the module handle. This may be used before Init() is called (the | 102 // Returns the module handle. This may be used before Init() is called (the |
| 97 // proxy needs this information to set itself up properly). | 103 // proxy needs this information to set itself up properly). |
| 98 PP_Module pp_module() const { return pp_module_; } | 104 PP_Module pp_module() const { return pp_module_; } |
| 99 | 105 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 203 |
| 198 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 204 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
| 199 | 205 |
| 200 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 206 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
| 201 }; | 207 }; |
| 202 | 208 |
| 203 } // namespace ppapi | 209 } // namespace ppapi |
| 204 } // namespace webkit | 210 } // namespace webkit |
| 205 | 211 |
| 206 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 212 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| OLD | NEW |