summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/guest_view
diff options
context:
space:
mode:
authorfsamuel <fsamuel@chromium.org>2015-05-05 03:18:30 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-05 10:18:59 +0000
commit628fe1a1e465cf83d7f6c25b63d824a0a85b7eb9 (patch)
tree2c85ca69d87f68ea00885a1ff78334bcfa820cdc /extensions/renderer/guest_view
parent6072ec29b5a4e0820dab461058e288ea365069b7 (diff)
downloadchromium_src-628fe1a1e465cf83d7f6c25b63d824a0a85b7eb9.zip
chromium_src-628fe1a1e465cf83d7f6c25b63d824a0a85b7eb9.tar.gz
chromium_src-628fe1a1e465cf83d7f6c25b63d824a0a85b7eb9.tar.bz2
GuestView: Simplify guest IPCS
BUG=444869 Review URL: https://codereview.chromium.org/1123823003 Cr-Commit-Position: refs/heads/master@{#328305}
Diffstat (limited to 'extensions/renderer/guest_view')
-rw-r--r--extensions/renderer/guest_view/guest_view_container.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/extensions/renderer/guest_view/guest_view_container.cc b/extensions/renderer/guest_view/guest_view_container.cc
index 8a44d5a..be6316d 100644
--- a/extensions/renderer/guest_view/guest_view_container.cc
+++ b/extensions/renderer/guest_view/guest_view_container.cc
@@ -49,15 +49,8 @@ GuestViewContainer::~GuestViewContainer() {}
// static.
bool GuestViewContainer::HandlesMessage(const IPC::Message& msg) {
- switch (msg.type()) {
- case ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK::ID:
- case ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted::ID:
- case GuestViewMsg_GuestAttached::ID:
- case GuestViewMsg_GuestDetached::ID:
- return true;
- default:
- return false;
- }
+ return (IPC_MESSAGE_CLASS(msg) == GuestViewMsgStart) ||
+ (IPC_MESSAGE_CLASS(msg) == ExtensionsGuestViewMsgStart);
}
void GuestViewContainer::RenderFrameDestroyed() {