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

Unified Diff: content/common/frame_messages.h

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 | « content/child/resource_dispatcher_unittest.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_messages.h
===================================================================
--- content/common/frame_messages.h (revision 238847)
+++ content/common/frame_messages.h (working copy)
@@ -51,3 +51,28 @@
int /* plugin_child_id */,
base::FilePath /* path */,
bool /* is_hung */)
+
+// Return information about a plugin for the given URL and MIME
+// type. If there is no matching plugin, |found| is false.
+// |actual_mime_type| is the actual mime type supported by the
+// found plugin.
+IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo,
+ int /* render_frame_id */,
+ GURL /* url */,
+ GURL /* page_url */,
+ std::string /* mime_type */,
+ bool /* found */,
+ content::WebPluginInfo /* plugin info */,
+ std::string /* actual_mime_type */)
+
+// A renderer sends this to the browser process when it wants to
+// create a plugin. The browser will create the plugin process if
+// necessary, and will return a handle to the channel on success.
+// On error an empty string is returned.
+IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin,
+ int /* render_frame_id */,
+ GURL /* url */,
+ GURL /* page_url */,
+ std::string /* mime_type */,
+ IPC::ChannelHandle /* channel_handle */,
+ content::WebPluginInfo /* info */)
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698