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

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

Issue 19625: Add support for dynamically loading internal plugins (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/plugin_lib_win.cc ('k') | no next file » | 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_LIST_H__ 5 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__
6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const std::string& mime_type, 66 const std::string& mime_type,
67 const std::string& clsid, 67 const std::string& clsid,
68 bool allow_wildcard, 68 bool allow_wildcard,
69 WebPluginInfo* info, 69 WebPluginInfo* info,
70 std::string* actual_mime_type); 70 std::string* actual_mime_type);
71 71
72 // Get plugin info by plugin path. Returns true if the plugin is found and 72 // Get plugin info by plugin path. Returns true if the plugin is found and
73 // WebPluginInfo has been filled in |info|. 73 // WebPluginInfo has been filled in |info|.
74 bool GetPluginInfoByPath(const FilePath& plugin_path, 74 bool GetPluginInfoByPath(const FilePath& plugin_path,
75 WebPluginInfo* info); 75 WebPluginInfo* info);
76
77 // Load a specific plugin with full path.
78 void LoadPlugin(const FilePath& filename);
79
76 private: 80 private:
77 // Constructors are private for singletons 81 // Constructors are private for singletons
78 PluginList(); 82 PluginList();
79 83
80 // Load all plugins from the default plugins directory 84 // Load all plugins from the default plugins directory
81 void LoadPlugins(bool refresh); 85 void LoadPlugins(bool refresh);
82 86
83 // Load all plugins from a specific directory 87 // Load all plugins from a specific directory
84 void LoadPluginsFromDir(const FilePath& path); 88 void LoadPluginsFromDir(const FilePath& path);
85 89
86 // Load a specific plugin with full path.
87 void LoadPlugin(const FilePath& filename);
88
89 // Returns true if we should load the given plugin, or false otherwise. 90 // Returns true if we should load the given plugin, or false otherwise.
90 bool ShouldLoadPlugin(const WebPluginInfo& info); 91 bool ShouldLoadPlugin(const WebPluginInfo& info);
91 92
92 // Load internal plugins. 93 // Load internal plugins.
93 void LoadInternalPlugins(); 94 void LoadInternalPlugins();
94 95
95 // Find a plugin by mime type, and clsid. 96 // Find a plugin by mime type, and clsid.
96 // If clsid is empty, we will just find the plugin that supports mime type. 97 // If clsid is empty, we will just find the plugin that supports mime type.
97 // Otherwise, if mime_type is application/x-oleobject etc that's supported by 98 // Otherwise, if mime_type is application/x-oleobject etc that's supported by
98 // by our activex shim, we need to check if the specified ActiveX exists. 99 // by our activex shim, we need to check if the specified ActiveX exists.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 159
159 friend struct base::DefaultLazyInstanceTraits<PluginList>; 160 friend struct base::DefaultLazyInstanceTraits<PluginList>;
160 161
161 DISALLOW_EVIL_CONSTRUCTORS(PluginList); 162 DISALLOW_EVIL_CONSTRUCTORS(PluginList);
162 }; 163 };
163 164
164 } // namespace NPAPI 165 } // namespace NPAPI
165 166
166 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ 167 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__
167 168
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_lib_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698