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

Side by Side Diff: webkit/glue/plugins/plugin_lib.h

Issue 200052: linux: rewrite mime parser (Closed)
Patch Set: review comments 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 unified diff | Download patch
« no previous file with comments | « no previous file | webkit/glue/plugins/plugin_lib_linux.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_GLUE_PLUGIN_PLUGIN_LIB_H__ 5 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__
6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 static PluginLib* CreatePluginLib(const FilePath& filename); 30 static PluginLib* CreatePluginLib(const FilePath& filename);
31 virtual ~PluginLib(); 31 virtual ~PluginLib();
32 32
33 // Creates a WebPluginInfo structure given a plugin's path. On success 33 // Creates a WebPluginInfo structure given a plugin's path. On success
34 // returns true, with the information being put into "info". 34 // returns true, with the information being put into "info".
35 // Returns false if the library couldn't be found, or if it's not a plugin. 35 // Returns false if the library couldn't be found, or if it's not a plugin.
36 static bool ReadWebPluginInfo(const FilePath& filename, WebPluginInfo* info); 36 static bool ReadWebPluginInfo(const FilePath& filename, WebPluginInfo* info);
37 37
38 #if defined(OS_LINUX) 38 #if defined(OS_LINUX)
39 // Parse the result of an NP_GetMIMEDescription() call, returning 39 // Parse the result of an NP_GetMIMEDescription() call.
40 // false on parse error. This API is only used on Linux, and is 40 // This API is only used on Linux, and is exposed here for testing.
41 // exposed here for testing. 41 static void ParseMIMEDescription(const std::string& description,
42 static bool ParseMIMEDescription(const char* description,
43 std::vector<WebPluginMimeType>* mime_types); 42 std::vector<WebPluginMimeType>* mime_types);
44 #endif 43 #endif
45 44
46 // Unloads all the loaded plugin libraries and cleans up the plugin map. 45 // Unloads all the loaded plugin libraries and cleans up the plugin map.
47 static void UnloadAllPlugins(); 46 static void UnloadAllPlugins();
48 47
49 // Shuts down all loaded plugin instances. 48 // Shuts down all loaded plugin instances.
50 static void ShutdownAllPlugins(); 49 static void ShutdownAllPlugins();
51 50
52 // Get the Plugin's function pointer table. 51 // Get the Plugin's function pointer table.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 101
103 // Function pointers to entry points into the plugin. 102 // Function pointers to entry points into the plugin.
104 PluginEntryPoints entry_points_; 103 PluginEntryPoints entry_points_;
105 104
106 DISALLOW_EVIL_CONSTRUCTORS(PluginLib); 105 DISALLOW_EVIL_CONSTRUCTORS(PluginLib);
107 }; 106 };
108 107
109 } // namespace NPAPI 108 } // namespace NPAPI
110 109
111 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ 110 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__
OLDNEW
« 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