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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.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: fix 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: chrome/browser/renderer_host/chrome_render_message_filter.h
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.h b/chrome/browser/renderer_host/chrome_render_message_filter.h
index adfcf4443def737ab9533652579324e46e54b282..afdd8be82a1b4da273e6473778775e4a2e4649ed 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.h
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.h
@@ -14,6 +14,7 @@
#include "content/common/dom_storage_common.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
+struct ChromeViewHostMsg_GetPluginInfo_Params;
struct ExtensionHostMsg_Request_Params;
class ExtensionInfoMap;
class FilePath;
@@ -43,6 +44,9 @@ class ChromeRenderMessageFilter : public BrowserMessageFilter {
friend class BrowserThread;
friend class DeleteTask<ChromeRenderMessageFilter>;
+ typedef base::Callback<void(ChromeViewHostMsg_GetPluginInfo_Params*)>
+ GetPluginInfoCallback;
+
virtual ~ChromeRenderMessageFilter();
void OnLaunchNaCl(const std::wstring& url,
@@ -117,6 +121,18 @@ class ChromeRenderMessageFilter : public BrowserMessageFilter {
void OnGetPluginContentSetting(const GURL& policy_url,
const std::string& resource,
ContentSetting* setting);
+ void OnGetPluginInfo(int render_view_id,
+ const GURL& url,
+ const GURL& top_origin_url,
+ const std::string& mime_type,
+ IPC::Message* reply_msg);
+ void PluginsLoaded(const GetPluginInfoCallback& callback,
+ IPC::Message* reply_msg);
+ void GetPluginInfo(int render_view_id,
+ const GURL& url,
+ const GURL& top_origin_url,
+ const std::string& mime_type,
+ ChromeViewHostMsg_GetPluginInfo_Params* params);
void OnCanTriggerClipboardRead(const GURL& url, bool* allowed);
void OnCanTriggerClipboardWrite(const GURL& url, bool* allowed);
void OnGetCookies(const GURL& url,
@@ -137,6 +153,8 @@ class ChromeRenderMessageFilter : public BrowserMessageFilter {
// Used to look up permissions at database creation time.
scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
+ const content::ResourceContext& resource_context_;
+
BooleanPrefMember allow_outdated_plugins_;
BooleanPrefMember always_authorize_plugins_;

Powered by Google App Engine
This is Rietveld 408576698