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

Unified Diff: content/browser/plugin_service.h

Issue 8071013: Finish moving plugin probing out of process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 2 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 | « chrome/browser/ui/webui/flash_ui.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service.h
diff --git a/content/browser/plugin_service.h b/content/browser/plugin_service.h
index 54c6e417d864373d74ade924779a1408f93c78f6..352660fbcc931bc918a69095cd9f5e635d212ecf 100644
--- a/content/browser/plugin_service.h
+++ b/content/browser/plugin_service.h
@@ -45,6 +45,7 @@ class MessageLoopProxy;
namespace content {
class ResourceContext;
class PluginServiceFilter;
+struct PluginServiceFilterParams;
}
namespace webkit {
@@ -138,10 +139,16 @@ class CONTENT_EXPORT PluginService
const GURL& page_url,
const std::string& mime_type,
bool allow_wildcard,
- bool* use_stale,
+ bool* is_stale,
webkit::WebPluginInfo* info,
std::string* actual_mime_type);
+ // Get plugin info by plugin path (including disabled plugins). Returns true
+ // if the plugin is found and WebPluginInfo has been filled in |info|. This
+ // will use cached data in the plugin list.
+ bool GetPluginInfoByPath(const FilePath& plugin_path,
+ webkit::WebPluginInfo* info);
+
// Marks the plugin list as dirty and will cause the plugins to be reloaded
// on the next access through GetPlugins() or GetPluginGroups().
void RefreshPluginList();
@@ -187,6 +194,14 @@ class CONTENT_EXPORT PluginService
void GetPluginsInternal(base::MessageLoopProxy* target_loop,
const GetPluginsCallback& callback);
+ // Binding directly to GetAllowedPluginForOpenChannelToPlugin() isn't possible
+ // because more arity is needed <http://crbug.com/98542>. This just forwards.
+ void ForwardGetAllowedPluginForOpenChannelToPlugin(
+ const content::PluginServiceFilterParams& params,
+ const GURL& url,
+ const std::string& mime_type,
+ PluginProcessHost::Client* client,
+ const std::vector<webkit::WebPluginInfo>&);
// Helper so we can do the plugin lookup on the FILE thread.
void GetAllowedPluginForOpenChannelToPlugin(
int render_process_id,
« no previous file with comments | « chrome/browser/ui/webui/flash_ui.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698