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 ac71dd4b342d9b6eac08ff2cf57912c80b9750f6..78866a26aa0c16ce02529d9d7ce377a392eb883c 100644 |
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
@@ -49,6 +49,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived( |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest) |
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, |
+ OnSetGuestVisibility) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -153,4 +155,10 @@ void BrowserPluginEmbedderHelper::OnTerminateGuest(int instance_id) { |
embedder_->TerminateGuest(instance_id); |
} |
+void BrowserPluginEmbedderHelper::OnSetGuestVisibility(int instance_id, |
+ bool visible) { |
+ embedder_->SetGuestVisibility(instance_id, visible); |
+} |
+ |
+ |
} // namespace content |