| Index: content/browser/browser_plugin/browser_plugin_embedder_helper.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
|
| index 7039b2bb06fa548466dab0491ea084c5bc8387f4..6c15c98d11d411a8b82afec86345bd03478e8cfe 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
|
| @@ -33,6 +33,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived(
|
| const IPC::Message& message) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(BrowserPluginEmbedderHelper, message)
|
| + IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_CreateGuest,
|
| + OnCreateGuest);
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_NavigateGuest,
|
| OnNavigateGuest);
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ResizeGuest, OnResizeGuest)
|
| @@ -97,6 +99,19 @@ void BrowserPluginEmbedderHelper::OnHandleInputEvent(
|
| reply_message);
|
| }
|
|
|
| +void BrowserPluginEmbedderHelper::OnCreateGuest(
|
| + int instance_id,
|
| + const std::string& storage_partition_id,
|
| + bool persist_storage) {
|
| + // The first BrowserPluginHostMsg_CreateGuest message is handled in
|
| + // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest
|
| + // messages are handled here.
|
| + embedder_->CreateGuest(render_view_host(),
|
| + instance_id,
|
| + storage_partition_id,
|
| + persist_storage);
|
| +}
|
| +
|
| void BrowserPluginEmbedderHelper::OnNavigateGuest(
|
| int instance_id,
|
| const std::string& src,
|
|
|