| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code | 122 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code |
| 123 // indicating whether the proxy started successfully or there was an error. | 123 // indicating whether the proxy started successfully or there was an error. |
| 124 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance); | 124 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance); |
| 125 | 125 |
| 126 bool IsProxied() const; | 126 bool IsProxied() const; |
| 127 | 127 |
| 128 // Returns the peer process ID if the plugin is running out of process; | 128 // Returns the peer process ID if the plugin is running out of process; |
| 129 // returns |base::kNullProcessId| otherwise. | 129 // returns |base::kNullProcessId| otherwise. |
| 130 base::ProcessId GetPeerProcessId(); | 130 base::ProcessId GetPeerProcessId(); |
| 131 | 131 |
| 132 // Returns the plugin child process ID if the plugin is running out of |
| 133 // process. Returns 0 otherwise. This is the ID that the browser process uses |
| 134 // to idetify the child process for the plugin. This isn't directly useful |
| 135 // from our process (the renderer) except in messages to the browser to |
| 136 // disambiguate plugins. |
| 137 int GetPluginChildId(); |
| 138 |
| 132 static const PPB_Core* GetCore(); | 139 static const PPB_Core* GetCore(); |
| 133 | 140 |
| 134 // Returns a pointer to the local GetInterface function for retrieving | 141 // Returns a pointer to the local GetInterface function for retrieving |
| 135 // PPB interfaces. | 142 // PPB interfaces. |
| 136 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 143 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
| 137 | 144 |
| 138 // Returns whether an interface is supported. This method can be called from | 145 // Returns whether an interface is supported. This method can be called from |
| 139 // the browser process and used for interface matching before plugin | 146 // the browser process and used for interface matching before plugin |
| 140 // registration. | 147 // registration. |
| 141 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager | 148 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 267 |
| 261 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 268 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
| 262 | 269 |
| 263 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 270 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
| 264 }; | 271 }; |
| 265 | 272 |
| 266 } // namespace ppapi | 273 } // namespace ppapi |
| 267 } // namespace webkit | 274 } // namespace webkit |
| 268 | 275 |
| 269 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 276 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| OLD | NEW |