summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorraymes <raymes@chromium.org>2014-12-22 20:13:55 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-23 04:14:45 +0000
commit9d460f93a1c87f4eee06cdddf50c44f2868010db (patch)
tree17ac85889cb9596b0326b8692f477b5122b32480 /extensions/common/extension_messages.h
parenta77cbd9c2e8b9d42edf5f6df0547ef4b4355c411 (diff)
downloadchromium_src-9d460f93a1c87f4eee06cdddf50c44f2868010db.zip
chromium_src-9d460f93a1c87f4eee06cdddf50c44f2868010db.tar.gz
chromium_src-9d460f93a1c87f4eee06cdddf50c44f2868010db.tar.bz2
Queue postMessage messages destined for a MimeHandlerView guest
Currently if postMessage messages are sent to a MimeHandlerView guest before it has loaded, they will just be dropped. It also isn't possible to know when the guest has fully loaded. This CL queues messages until the guest has fully loaded and then dispatches them to the guest so that none are lost. BUG=415858 Review URL: https://codereview.chromium.org/811263002 Cr-Commit-Position: refs/heads/master@{#309534}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 80577c1..4d181c1 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -554,11 +554,16 @@ IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs,
IPC_MESSAGE_CONTROL1(ExtensionMsg_CreateMimeHandlerViewGuestACK,
int /* element_instance_id */)
+// Once a MimeHandlerView guest's JavaScript onload function has been called,
+// this IPC is sent to the container to notify it.
+IPC_MESSAGE_CONTROL1(ExtensionMsg_MimeHandlerViewGuestOnLoadCompleted,
+ int /* element_instance_id */)
+
// Once a RenderView proxy has been created for the guest in the embedder render
// process, this IPC informs the embedder of the proxy's routing ID.
IPC_MESSAGE_CONTROL2(ExtensionMsg_GuestAttached,
- int /* element_instance_id */,
- int /* source_routing_id */)
+ int /* element_instance_id */,
+ int /* source_routing_id */)
// This IPC tells the browser process to detach the provided
// |element_instance_id| from a GuestViewBase if it is attached to one.