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

Unified Diff: content/common/pepper_plugin_registry.h

Issue 7670003: Wire experimental Flapper part two (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « content/browser/plugin_service.cc ('k') | content/common/pepper_plugin_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/pepper_plugin_registry.h
===================================================================
--- content/common/pepper_plugin_registry.h (revision 96718)
+++ content/common/pepper_plugin_registry.h (working copy)
@@ -46,6 +46,12 @@
webkit::ppapi::PluginModule::EntryPoints internal_entry_points;
};
+// Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if
+// the operation is not possible, in particular the WebPluginInfo::type
+// must be one of the pepper types.
+bool MakePepperPluginInfo(const webkit::WebPluginInfo& webplugin_info,
+ PepperPluginInfo* pepper_info);
+
// This class holds references to all of the known pepper plugin modules.
//
// It keeps two lists. One list of preloaded in-process modules, and one list
@@ -72,11 +78,12 @@
// access to the plugins before entering the sandbox.
static void PreloadModules();
- // Retrieves the information associated with the given plugin path. The
+ // Retrieves the information associated with the given plugin info. The
// return value will be NULL if there is no such plugin.
//
// The returned pointer is owned by the PluginRegistry.
- const PepperPluginInfo* GetInfoForPlugin(const FilePath& path) const;
+ const PepperPluginInfo* GetInfoForPlugin(
+ const webkit::WebPluginInfo& info);
// Returns an existing loaded module for the given path. It will search for
// both preloaded in-process or currently active (non crashed) out-of-process
« no previous file with comments | « content/browser/plugin_service.cc ('k') | content/common/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698