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

Unified Diff: content/browser/plugin_service.h

Issue 7990005: Use a placeholder instead of the default plugin for missing plug-ins on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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
Index: content/browser/plugin_service.h
diff --git a/content/browser/plugin_service.h b/content/browser/plugin_service.h
index f662b33f0a78c825b00518e76e787a1eb558ae16..52a0fbbc5f476f29daf5c02a7f8c6263f73073dc 100644
--- a/content/browser/plugin_service.h
+++ b/content/browser/plugin_service.h
@@ -63,13 +63,6 @@ class CONTENT_EXPORT PluginService
: public base::WaitableEventWatcher::Delegate,
public NotificationObserver {
public:
- struct OverriddenPlugin {
- int render_process_id;
- int render_view_id;
- GURL url; // If empty, the override applies to all urls in render_view.
- webkit::WebPluginInfo plugin;
- };
-
typedef base::Callback<void(const std::vector<webkit::WebPluginInfo>&)>
GetPluginsCallback;
typedef base::Callback<void(const std::vector<webkit::npapi::PluginGroup>&)>
@@ -133,6 +126,20 @@ class CONTENT_EXPORT PluginService
webkit::WebPluginInfo* info,
std::string* actual_mime_type);
+ // Returns a list of all plug-ins that match the given URL and MIME type.
+ void GetMatchingPlugins(
jam 2011/09/27 16:51:34 nit: it seems that this is equivalent to GetPlugin
Bernhard Bauer 2011/09/27 21:21:39 That's why I tried to give it a more descriptive n
jam 2011/09/29 01:03:32 You lost me here :) I'm still not clear why GetPlu
Bernhard Bauer 2011/09/29 13:20:47 It's not, that's why I'd prefer to rename GetPlugi
jam 2011/09/29 16:31:10 Ok I think I understand your point now, which is t
+ int render_process_id,
+ int render_view_id,
+ const content::ResourceContext& context,
+ const GURL& url,
+ const GURL& page_url,
+ const std::string& mime_type,
+ bool allow_wildcard,
+ bool* use_stale,
Robert Sesek 2011/09/29 01:09:48 This isn't going to work with the direction we're
jam 2011/09/29 01:13:49 right, I think Bernhard's change is from a revisio
Bernhard Bauer 2011/09/29 13:20:47 No, I did not get a CHECK :) Note that this is ess
jam 2011/09/29 16:31:10 hmm, probably because it was cached then.
+ std::vector<webkit::WebPluginInfo>* plugins,
+ std::vector<std::string>* mime_types,
Robert Sesek 2011/09/29 01:09:48 I'm adding a function that is very similar to this
+ std::vector<bool>* allowed);
+
// Marks the plugin list as dirty and will cause the plugins to be reloaded
// on the next access through GetPlugins() or GetPluginGroups().
void RefreshPluginList();

Powered by Google App Engine
This is Rietveld 408576698