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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 given out of process proxy. This takes |
114 // ownership of the given pointer, even in the failure case. | 114 // ownership of the given pointer, even in the failure case. |
115 void InitAsProxiedNaCl( | 115 void InitAsProxiedNaCl( |
116 scoped_ptr<PluginDelegate::OutOfProcessProxy> out_of_process_proxy, | 116 PluginDelegate::OutOfProcessProxy* out_of_process_proxy, |
117 PP_Instance instance); | 117 PluginInstance* instance); |
118 | 118 |
119 static const PPB_Core* GetCore(); | 119 static const PPB_Core* GetCore(); |
120 | 120 |
121 // Returns a pointer to the local GetInterface function for retrieving | 121 // Returns a pointer to the local GetInterface function for retrieving |
122 // PPB interfaces. | 122 // PPB interfaces. |
123 static GetInterfaceFunc GetLocalGetInterfaceFunc(); | 123 static GetInterfaceFunc GetLocalGetInterfaceFunc(); |
124 | 124 |
125 // Returns whether an interface is supported. This method can be called from | 125 // Returns whether an interface is supported. This method can be called from |
126 // the browser process and used for interface matching before plugin | 126 // the browser process and used for interface matching before plugin |
127 // registration. | 127 // registration. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 240 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 242 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace ppapi | 245 } // namespace ppapi |
246 } // namespace webkit | 246 } // namespace webkit |
247 | 247 |
248 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 248 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
OLD | NEW |