diff options
author | fsamuel <fsamuel@chromium.org> | 2015-05-08 10:27:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-08 17:27:37 +0000 |
commit | 7427a2fea91dcd0331628297cc08a33eb1765ad2 (patch) | |
tree | fc7d42eacd945ef071d3cf52ccfe05e3250c0d13 /extensions/shell/renderer | |
parent | 5d8094a323492b3cb1439e6c69fc0851f330757a (diff) | |
download | chromium_src-7427a2fea91dcd0331628297cc08a33eb1765ad2.zip chromium_src-7427a2fea91dcd0331628297cc08a33eb1765ad2.tar.gz chromium_src-7427a2fea91dcd0331628297cc08a33eb1765ad2.tar.bz2 |
Decouple GuestViewContainer from Extensions
This CL does the following:
1. It moves ExtensionsGuestViewContainer::Request/AttachRequest/DetachRequest to guest_view_request.*
2. It moves the queuing functionality for attach/detach to guest_view_container.*
3. It removes extensions dependencies in guest_view_container
A subsequent patch will move extensions/this to components.
BUG=444869
Review URL: https://codereview.chromium.org/1118243003
Cr-Commit-Position: refs/heads/master@{#328974}
Diffstat (limited to 'extensions/shell/renderer')
-rw-r--r-- | extensions/shell/renderer/shell_content_renderer_client.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/shell/renderer/shell_content_renderer_client.cc b/extensions/shell/renderer/shell_content_renderer_client.cc index 967972d..34f538f 100644 --- a/extensions/shell/renderer/shell_content_renderer_client.cc +++ b/extensions/shell/renderer/shell_content_renderer_client.cc @@ -19,6 +19,7 @@ #include "extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h" #include "extensions/shell/common/shell_extensions_client.h" #include "extensions/shell/renderer/shell_extensions_renderer_client.h" +#include "ipc/ipc_message_macros.h" #include "third_party/WebKit/public/web/WebLocalFrame.h" #if !defined(DISABLE_NACL) @@ -97,7 +98,8 @@ blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement( bool ShellContentRendererClient::ShouldForwardToGuestContainer( const IPC::Message& msg) { - return GuestViewContainer::HandlesMessage(msg); + return (IPC_MESSAGE_CLASS(msg) == GuestViewMsgStart) || + (IPC_MESSAGE_CLASS(msg) == ExtensionsGuestViewMsgStart); } bool ShellContentRendererClient::WillSendRequest( |