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

Unified Diff: chrome/common/render_messages_internal.h

Issue 2967007: Disable outdated plugins, block non-sandboxed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/blocked_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 370477731634da543756bfdb09d82c76b2c73e42..4c4696403effb61b4746d701aaf01885f269e0c5 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -505,6 +505,9 @@ IPC_BEGIN_MESSAGES(View)
IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
bool /* reload_pages */)
+ // Tells the render view to load all blocked plugins
+ IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins)
+
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
@@ -1237,14 +1240,15 @@ IPC_BEGIN_MESSAGES(ViewHost)
bool /* refresh*/,
std::vector<WebPluginInfo> /* plugins */)
- // Returns a path to a plugin for the given url and mime type. If there's
- // no plugin, an empty string is returned.
- IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_GetPluginPath,
+ // Return information about a plugin for the given URL and MIME type. If there
+ // is no matching plugin, |found| is set to false.
+ IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfo,
GURL /* url */,
GURL /* policy_url */,
std::string /* mime_type */,
- FilePath /* filename */,
- std::string /* actual mime type for url */)
+ bool /* found */,
+ WebPluginInfo /* plugin info */,
+ std::string /* actual_mime_type */)
// Requests spellcheck for a word.
IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
@@ -1661,11 +1665,23 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus,
int /* status */)
+ // Notifies when a non-sandboxed plugin was blocked.
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_NonSandboxedPluginBlocked,
+ string16 /* name */)
+
+ // Notifies when a blocked plugin was loaded via click-to-load.
+ IPC_MESSAGE_ROUTED0(ViewHostMsg_BlockedPluginLoaded)
+
// Sent by the renderer process to indicate that a plugin instance has
// crashed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin,
FilePath /* plugin_path */)
+ // Notifies when a plugin couldn't be loaded because it's outdated.
+ IPC_MESSAGE_ROUTED2(ViewHostMsg_DisabledOutdatedPlugin,
+ string16, /* name */
+ GURL /* update_url */)
+
// Displays a JavaScript out-of-memory message in the infobar.
IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory)
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/blocked_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698