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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // be created. | 115 // be created. |
116 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); | 116 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); |
117 | 117 |
118 // Initializes the NaCl module for the out of process proxy. InitAsProxied | 118 // Initializes the NaCl module for the out of process proxy. InitAsProxied |
119 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code | 119 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code |
120 // indicating whether the proxy started successfully or there was an error. | 120 // indicating whether the proxy started successfully or there was an error. |
121 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance); | 121 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance); |
122 | 122 |
123 bool IsProxied() const; | 123 bool IsProxied() const; |
124 | 124 |
| 125 // Returns the peer process ID if the plugin is running out of process; |
| 126 // returns |base::kNullProcessId| otherwise. |
| 127 base::ProcessId GetPeerProcessId(); |
| 128 |
125 static const PPB_Core* GetCore(); | 129 static const PPB_Core* GetCore(); |
126 | 130 |
127 // Returns a pointer to the local GetInterface function for retrieving | 131 // Returns a pointer to the local GetInterface function for retrieving |
128 // PPB interfaces. | 132 // PPB interfaces. |
129 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 133 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
130 | 134 |
131 // Returns whether an interface is supported. This method can be called from | 135 // Returns whether an interface is supported. This method can be called from |
132 // the browser process and used for interface matching before plugin | 136 // the browser process and used for interface matching before plugin |
133 // registration. | 137 // registration. |
134 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager | 138 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 251 |
248 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 252 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
249 | 253 |
250 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 254 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
251 }; | 255 }; |
252 | 256 |
253 } // namespace ppapi | 257 } // namespace ppapi |
254 } // namespace webkit | 258 } // namespace webkit |
255 | 259 |
256 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 260 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
OLD | NEW |