OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 void SetBroker(PluginDelegate::PpapiBroker* broker); | 153 void SetBroker(PluginDelegate::PpapiBroker* broker); |
154 PluginDelegate::PpapiBroker* GetBroker(); | 154 PluginDelegate::PpapiBroker* GetBroker(); |
155 | 155 |
156 // Retrieves the forwarding interface used for talking to WebKit. | 156 // Retrieves the forwarding interface used for talking to WebKit. |
157 ::ppapi::WebKitForwarding* GetWebKitForwarding(); | 157 ::ppapi::WebKitForwarding* GetWebKitForwarding(); |
158 | 158 |
159 private: | 159 private: |
160 // Calls the InitializeModule entrypoint. The entrypoint must have been | 160 // Calls the InitializeModule entrypoint. The entrypoint must have been |
161 // set and the plugin must not be out of process (we don't maintain | 161 // set and the plugin must not be out of process (we don't maintain |
162 // entrypoints in that case). | 162 // entrypoints in that case). |
163 bool InitializeModule(); | 163 bool InitializeModule(const EntryPoints& entry_points); |
164 | 164 |
165 PluginDelegate::ModuleLifetime* lifetime_delegate_; | 165 PluginDelegate::ModuleLifetime* lifetime_delegate_; |
166 | 166 |
167 // Tracker for completion callbacks, used mainly to ensure that all callbacks | 167 // Tracker for completion callbacks, used mainly to ensure that all callbacks |
168 // are properly aborted on module shutdown. | 168 // are properly aborted on module shutdown. |
169 scoped_refptr<CallbackTracker> callback_tracker_; | 169 scoped_refptr<CallbackTracker> callback_tracker_; |
170 | 170 |
171 PP_Module pp_module_; | 171 PP_Module pp_module_; |
172 | 172 |
173 // True if the plugin is running out-of-process and has crashed. | 173 // True if the plugin is running out-of-process and has crashed. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // Lazily created by GetWebKitForwarding. | 207 // Lazily created by GetWebKitForwarding. |
208 scoped_ptr< ::ppapi::WebKitForwarding> webkit_forwarding_; | 208 scoped_ptr< ::ppapi::WebKitForwarding> webkit_forwarding_; |
209 | 209 |
210 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 210 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
211 }; | 211 }; |
212 | 212 |
213 } // namespace ppapi | 213 } // namespace ppapi |
214 } // namespace webkit | 214 } // namespace webkit |
215 | 215 |
216 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 216 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
OLD | NEW |