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

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

Issue 11016005: Using MIME types in addition to plugin name to differentiate between plugins. (Closed) Base URL: http://git.chromium.org/chromium/src.git@5_plugins_resource_service
Patch Set: fixed error Created 8 years, 2 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 | « chrome/browser/resources/plugin_metadata/plugins_linux.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_list.h
diff --git a/webkit/plugins/npapi/plugin_list.h b/webkit/plugins/npapi/plugin_list.h
index 7de29513a94c6c6158b0ee9d498e8364c485d724..6825538413a1507bfe0048dc0f716a32fb365e1d 100644
--- a/webkit/plugins/npapi/plugin_list.h
+++ b/webkit/plugins/npapi/plugin_list.h
@@ -59,6 +59,12 @@ class WEBKIT_PLUGINS_EXPORT PluginList {
// by a command line switch.
static bool DebugPluginLoading();
+ // Returns true if the plugin supports |mime_type|. |mime_type| should be all
+ // lower case.
+ static bool SupportsType(const webkit::WebPluginInfo& plugin,
+ const std::string& mime_type,
+ bool allow_wildcard);
+
// Cause the plugin list to refresh next time they are accessed, regardless
// of whether they are already loaded.
void RefreshPlugins();
@@ -203,12 +209,6 @@ class WEBKIT_PLUGINS_EXPORT PluginList {
const webkit::WebPluginInfo& info,
std::vector<webkit::WebPluginInfo>* plugins);
- // Returns true if the plugin supports |mime_type|. |mime_type| should be all
- // lower case.
- bool SupportsType(const webkit::WebPluginInfo& plugin,
- const std::string& mime_type,
- bool allow_wildcard);
-
// Returns true if the given plugin supports a given file extension.
// |extension| should be all lower case. If |mime_type| is not NULL, it will
// be set to the MIME type if found. The MIME type which corresponds to the
« no previous file with comments | « chrome/browser/resources/plugin_metadata/plugins_linux.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698