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

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

Issue 2858035: Modify NPAPI::PluginList::GetPluginInfo() to return true also for disabled plugins. (Closed)
Patch Set: Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PLUGINS_PLUGIN_LIST_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Shutdown all plugins. Should be called at process teardown. 119 // Shutdown all plugins. Should be called at process teardown.
120 void Shutdown(); 120 void Shutdown();
121 121
122 // Get all the plugins. 122 // Get all the plugins.
123 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); 123 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins);
124 124
125 // Get all the enabled plugins. 125 // Get all the enabled plugins.
126 void GetEnabledPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); 126 void GetEnabledPlugins(bool refresh, std::vector<WebPluginInfo>* plugins);
127 127
128 // Returns true if a plugin is found for the given url and mime type. 128 // Returns true if a plugin is found for the given url and mime type
129 // (including disabled plugins).
jochen (gone - plz use gerrit) 2010/06/30 13:09:40 nit. maybe also point out that for these plugins i
129 // The mime type which corresponds to the URL is optionally returned 130 // The mime type which corresponds to the URL is optionally returned
130 // back. 131 // back.
131 // The allow_wildcard parameter controls whether this function returns 132 // The allow_wildcard parameter controls whether this function returns
132 // plugins which support wildcard mime types (* as the mime type). 133 // plugins which support wildcard mime types (* as the mime type).
133 bool GetPluginInfo(const GURL& url, 134 bool GetPluginInfo(const GURL& url,
134 const std::string& mime_type, 135 const std::string& mime_type,
135 bool allow_wildcard, 136 bool allow_wildcard,
136 WebPluginInfo* info, 137 WebPluginInfo* info,
137 std::string* actual_mime_type); 138 std::string* actual_mime_type);
138 139
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 Lock lock_; 266 Lock lock_;
266 267
267 friend struct base::DefaultLazyInstanceTraits<PluginList>; 268 friend struct base::DefaultLazyInstanceTraits<PluginList>;
268 269
269 DISALLOW_COPY_AND_ASSIGN(PluginList); 270 DISALLOW_COPY_AND_ASSIGN(PluginList);
270 }; 271 };
271 272
272 } // namespace NPAPI 273 } // namespace NPAPI
273 274
274 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ 275 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/buffered_resource_handler.cc ('k') | webkit/glue/plugins/plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698