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

Unified Diff: webkit/glue/plugins/plugin_list.h

Issue 207025: NaCl-Chrome integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/plugin_lib.h ('k') | webkit/glue/plugins/plugin_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_list.h
===================================================================
--- webkit/glue/plugins/plugin_list.h (revision 26533)
+++ webkit/glue/plugins/plugin_list.h (working copy)
@@ -29,6 +29,7 @@
#define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin")
#define kGearsPluginLibraryName FILE_PATH_LITERAL("gears")
+#define kNaClPluginLibraryName FILE_PATH_LITERAL("internal_nacl")
class PluginInstance;
@@ -105,6 +106,13 @@
static bool CreateWebPluginInfo(const PluginVersionInfo& pvi,
WebPluginInfo* info);
+ // Set NativeClient plugin mode (avoid loading both the built-in and
+ // the external version of the plugin). The arguments provide pointers
+ // to NaCl plugin entry points - the functions are not referenced directly
+ // from this class to avoid introducing dependency between Webkit glue
+ // library and NaCl code.
+ static void UseInternalNaCl(PluginEntryPoints* entry_points);
+
// Shutdown all plugins. Should be called at process teardown.
void Shutdown();
@@ -148,6 +156,11 @@
bool ShouldLoadPlugin(const WebPluginInfo& info,
std::vector<WebPluginInfo>* plugins);
+ // Returns true if we should load the given plugin, or false otherwise.
+ // This function is platform-specific and is called from ShouldLoadPlugin.
+ bool PlatformShouldLoadPlugin(const WebPluginInfo& info,
+ std::vector<WebPluginInfo>* plugins);
+
// Find a plugin by mime type.
// The allow_wildcard parameter controls whether this function returns
// plugins which support wildcard mime types (* as the mime type)
@@ -212,6 +225,9 @@
// Holds information about internal plugins.
std::vector<PluginVersionInfo> internal_plugins_;
+ // true if we should use our internal Native Client plugin
+ bool use_internal_nacl_;
+
// Need synchronization for the above members since this object can be
// accessed on multiple threads.
Lock lock_;
« no previous file with comments | « webkit/glue/plugins/plugin_lib.h ('k') | webkit/glue/plugins/plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698