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

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

Issue 193046: linux: write a unit test for plugin mime parsing (Closed)
Patch Set: japanese 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 | « no previous file | webkit/glue/plugins/plugin_lib_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_lib.h
diff --git a/webkit/glue/plugins/plugin_lib.h b/webkit/glue/plugins/plugin_lib.h
index 46b5b0161c036b296f63ac0905a305d2221d3291..aad3f56b9baf2f7094e6da11571434116e3b2f23 100644
--- a/webkit/glue/plugins/plugin_lib.h
+++ b/webkit/glue/plugins/plugin_lib.h
@@ -12,6 +12,7 @@
#include "base/file_path.h"
#include "base/native_library.h"
#include "base/ref_counted.h"
+#include "build/build_config.h"
#include "webkit/glue/plugins/plugin_list.h"
#include "webkit/glue/webplugin.h"
@@ -34,6 +35,14 @@ class PluginLib : public base::RefCounted<PluginLib> {
// Returns false if the library couldn't be found, or if it's not a plugin.
static bool ReadWebPluginInfo(const FilePath& filename, WebPluginInfo* info);
+#if defined(OS_LINUX)
+ // Parse the result of an NP_GetMIMEDescription() call, returning
+ // false on parse error. This API is only used on Linux, and is
+ // exposed here for testing.
+ static bool ParseMIMEDescription(const char* description,
+ std::vector<WebPluginMimeType>* mime_types);
+#endif
+
// Unloads all the loaded plugin libraries and cleans up the plugin map.
static void UnloadAllPlugins();
« no previous file with comments | « no previous file | webkit/glue/plugins/plugin_lib_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698