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

Unified Diff: content/common/view_messages.h

Issue 10909138: Convert the async device ID getter to a chrome resource host (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/public/browser/browser_ppapi_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index f7452447b50a71834d0cfb8f100b4ef25c50c515..422776de7b1f711d56d3b64ee370c6b0b141a0a8 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1908,6 +1908,28 @@ IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
IPC::ChannelHandle /* handle to channel */,
int /* plugin_child_id */)
+// Notification that a native (non-NaCl) plugin has created a new plugin
+// instance. The parameters indicate the plugin process ID that we're creating
+// the instance for, and the routing ID of the render view that the plugin
+// instance is associated with. This allows us to create a mapping in the
+// browser process for what objects a given PP_Instance is associated with.
+//
+// This message must be sync even though it returns no parameters to avoid
+// a race condition with the plugin process. The plugin process sends messages
+// to the browser that assume the browser knows about the instance. We need to
+// sure that the browser actually knows about the instance before we tell the
+// plugin to run.
+IPC_SYNC_MESSAGE_CONTROL3_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance,
+ int /* plugin_child_id */,
+ int32 /* pp_instance */,
+ int /* view_routing_id */)
+
+// Notification that a native (non-NaCl) plugin has destroyed an instance. This
+// is the opposite if the "DidCreate" version above.
+IPC_MESSAGE_CONTROL2(ViewHostMsg_DidDeleteOutOfProcessPepperInstance,
+ int /* plugin_child_id */,
+ int32 /* pp_instance */)
+
// A renderer sends this to the browser process when it wants to
// create a ppapi broker. The browser will create the broker process
// if necessary, and will return a handle to the channel on success.
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/public/browser/browser_ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698