Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: webkit/plugins/ppapi/plugin_module.h

Issue 7277077: While initializing the pepper plugin registry in the renderer we load each plugin and attempt to ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698