summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorlazyboy <lazyboy@chromium.org>2014-09-06 06:22:51 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-06 13:24:18 +0000
commitabce781d9bc37e60d95ed9504407169f845e056d (patch)
treef771ce06dd59b943734c0642cb3dff71587793fc /extensions/common/extension_messages.h
parent3b21259d93fdc6cd23ede873b15468bd35a047bf (diff)
downloadchromium_src-abce781d9bc37e60d95ed9504407169f845e056d.zip
chromium_src-abce781d9bc37e60d95ed9504407169f845e056d.tar.gz
chromium_src-abce781d9bc37e60d95ed9504407169f845e056d.tar.bz2
Adding MimeHandlerView.
This GuestView type would be used to render out of process pdf through extension. This introduces BrowserPluginDelegate in content/renderer, because we need a way to create a MimeHandlerView guest (extensions/ concept) from BrowserPlugin (content/ concept). MimeHandlerView is behind --enable-mime-handler-view flag. BUG=303491 Test=Apply http://crrev.com/392813003/ on top of this CL, Launch chrome with --out-of-process-pdf flag and --enable-mime-handler-view flag Navigate to a PDF Check PDF is served using BrowserPlugin, probably easier to see process associated with the BrowserPlugin from Chrome's task manager. Review URL: https://codereview.chromium.org/376033002 Cr-Commit-Position: refs/heads/master@{#293613}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 6feae8c..8b090ca 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -512,6 +512,10 @@ IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages,
IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs,
std::vector<std::string> /* blob_uuids */)
+// The ACK for ExtensionHostMsg_CreateMimeHandlerViewGuest.
+IPC_MESSAGE_CONTROL1(ExtensionMsg_CreateMimeHandlerViewGuestACK,
+ int /* element_instance_id */)
+
// Messages sent from the renderer to the browser.
// A renderer sends this message when an extension process starts an API
@@ -733,3 +737,10 @@ IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest,
int /* element_instance_id */,
int /* guest_instance_id */,
base::DictionaryValue /* attach_params */)
+
+// Tells the browser to create a mime handler guest view for a plugin.
+IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest,
+ int /* render_frame_id */,
+ std::string /* embedder_url */,
+ std::string /* mime_type */,
+ int /* element_instance_id */)