diff options
author | fsamuel <fsamuel@chromium.org> | 2015-05-05 03:18:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-05 10:18:59 +0000 |
commit | 628fe1a1e465cf83d7f6c25b63d824a0a85b7eb9 (patch) | |
tree | 2c85ca69d87f68ea00885a1ff78334bcfa820cdc /extensions/renderer/guest_view | |
parent | 6072ec29b5a4e0820dab461058e288ea365069b7 (diff) | |
download | chromium_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.cc | 11 |
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() { |